Merge pull request #2808 from warrenlee/coupon-bug-fix
coupon message set invalid if null
This commit is contained in:
commit
2a7500f64f
|
@ -376,7 +376,8 @@ class WC_Coupon {
|
|||
if ( $valid ) {
|
||||
return true;
|
||||
} else {
|
||||
$error_code = self::E_WC_COUPON_INVALID_FILTERED;
|
||||
if ( is_null( $error_code ) )
|
||||
$error_code = self::E_WC_COUPON_INVALID_FILTERED;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue