Merge pull request #19848 from woocommerce/tweak/support-payment_method_in

Support payment_method_in when selecting orders
This commit is contained in:
Claudiu Lodromanean 2018-04-26 08:26:33 -07:00 committed by GitHub
commit 9b37eb980f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class WC_Data_Store_WP {
$wp_query_args['meta_query'][] = array(
'key' => '_' . $key,
'value' => $value,
'compare' => '=',
'compare' => is_array( $value ) ? 'IN' : '=',
);
} else { // Other vars get mapped to wp_query args or just left alone.
$key_mapping = array(