[2.4] Fixe order by user and sorting by total, closes #8803
This commit is contained in:
parent
6d79f7f02b
commit
275849b5da
|
@ -1765,8 +1765,13 @@ class WC_Admin_Post_Types {
|
|||
|
||||
// Filter the orders by the posted customer.
|
||||
if ( isset( $_GET['_customer_user'] ) && $_GET['_customer_user'] > 0 ) {
|
||||
$vars['meta_key'] = '_customer_user';
|
||||
$vars['meta_value'] = (int) $_GET['_customer_user'];
|
||||
$vars['meta_query'] = array(
|
||||
array(
|
||||
'key' => '_customer_user',
|
||||
'value' => (int) $_GET['_customer_user'],
|
||||
'compare' => '='
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Sorting
|
||||
|
|
Loading…
Reference in New Issue