mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Disambiguate menu_order. Props markjaquith. fixes #20711
git-svn-id: https://develop.svn.wordpress.org/trunk@20836 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
039002fbc7
commit
c392250983
@ -2343,6 +2343,7 @@ class WP_Query {
|
||||
|
||||
switch ( $orderby ) {
|
||||
case 'menu_order':
|
||||
$orderby = "$wpdb->posts.menu_order";
|
||||
break;
|
||||
case 'ID':
|
||||
$orderby = "$wpdb->posts.ID";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user