[2.4] Fixe order by user and sorting by total, closes #8803

This commit is contained in:
Claudio Sanches 2015-08-13 00:33:56 -03:00
parent 6d79f7f02b
commit 275849b5da
1 changed files with 7 additions and 2 deletions

View File

@ -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