woothemes/woocommerce — Issue #507: Bug in coupons.class.php
Author: marke123
Created: 2012-01-16 12:59:22+00:00
State: open

Around line 114 in coupons.class.php in WooCommerce 3.1 we find this code:

$valid = apply_filters('woocommerce_coupon_is_valid', true, $this);

Obviously passing "true" to a filter is pointless. That should actually be passing the current $valid value like so:

$valid = apply_filters('woocommerce_coupon_is_valid', $valid, $this);

Please fix asap!

Thanks.