fix case-insensitive matching for coupon posts with uppercase chars
This commit is contained in:
parent
34726ab6bc
commit
3b1f54f86c
|
@ -138,7 +138,7 @@ class WC_Coupon {
|
|||
$coupon = get_post( $coupon_id );
|
||||
$this->post_title = apply_filters( 'woocommerce_coupon_code', $coupon->post_title );
|
||||
|
||||
if ( empty( $coupon ) || $this->code !== $coupon->post_title )
|
||||
if ( empty( $coupon ) || $this->code !== $this->post_title )
|
||||
return;
|
||||
|
||||
$this->id = $coupon->ID;
|
||||
|
|
Loading…
Reference in New Issue