Order by date and ID

Fixes #10493
This commit is contained in:
Mike Jolley 2016-03-08 12:54:07 +00:00
parent 5b7bc59517
commit 75d10abd16
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class WC_Query {
$args['orderby'] = 'rand';
break;
case 'date' :
$args['orderby'] = 'date';
$args['orderby'] = 'date ID';
$args['order'] = $order == 'ASC' ? 'ASC' : 'DESC';
break;
case 'price' :