Skip to content

Commit

Permalink
Coupon user limit check fix
Browse files Browse the repository at this point in the history
Fixes a where clause problem. Fixes woocommerce#17235 .
  • Loading branch information
deltaWhiskey committed Oct 16, 2017
1 parent a087f5f commit 4c16aea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions includes/class-wc-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -1495,9 +1495,11 @@ public function check_customer_coupons( $posted ) {
$users_query = new WP_User_Query( array(
'fields' => 'ID',
'meta_query' => array(
'key' => '_billing_email',
'value' => $check_emails,
'compare' => 'IN',
array(
'key' => '_billing_email',
'value' => $check_emails,
'compare' => 'IN',
),
),
) );

Expand Down

0 comments on commit 4c16aea

Please sign in to comment.