Order variations by menu_order by fallback to ID.

This commit is contained in:
Mike Jolley 2015-08-13 10:40:50 +01:00
parent d3e2217227
commit 8f759c8af1
2 changed files with 4 additions and 2 deletions

View File

@ -2486,8 +2486,7 @@ class WC_AJAX {
'post_status' => array( 'private', 'publish' ),
'posts_per_page' => $per_page,
'paged' => $page,
'orderby' => 'menu_order',
'order' => 'ASC',
'orderby' => array( 'menu_order' => 'ASC', 'ID' => 'DESC' ),
'post_parent' => $product_id
), $product_id );

View File

@ -159,6 +159,9 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog ==
* Tweak - Order variations by menu_order by fallback to ID.
= 2.4.3 - 12/08/2015 =
* Fix - Query within wc_customer_bought_product().
* Fix - Tab hiding with some theme markup.