Order variations by menu_order by fallback to ID.
This commit is contained in:
parent
d3e2217227
commit
8f759c8af1
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue