Fix invalid orderby key name for orderby pricing closes #9584

This commit is contained in:
roykho 2015-11-17 07:59:53 -08:00
parent 4595befb76
commit c7aed861cd
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ class WC_Query {
$args['order'] = $order == 'ASC' ? 'ASC' : 'DESC';
break;
case 'price' :
$args['orderby'] = "meta_value_num {$wpdb->posts}.ID";
$args['orderby'] = "meta_value_num ID";
$args['order'] = $order == 'DESC' ? 'DESC' : 'ASC';
$args['meta_key'] = '_price';
break;