Skip to content

Commit

Permalink
Merge pull request #2975 from makers99/fix/woocommerce-gdpr-erases-al…
Browse files Browse the repository at this point in the history
…l-orders-sun

Fixed WooCommerce data privacy eraser query deletes all orders.
  • Loading branch information
felipeelia authored Sep 16, 2022
2 parents 0f3e197 + 23b9474 commit dfc45ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Indexable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ public function build_meta_query( $meta_queries ) {
if ( false !== $terms_obj ) {
$meta_filter[] = $terms_obj;
}
} elseif ( is_array( $single_meta_query ) && isset( $single_meta_query[0] ) && is_array( $single_meta_query[0] ) ) {
} elseif ( is_array( $single_meta_query ) ) {
/**
* Handle multidimensional array. Something like:
*
Expand Down

0 comments on commit dfc45ab

Please sign in to comment.