mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-02 11:21:57 +01:00
Disambiguate menu_order. Props markjaquith. fixes #20711
git-svn-id: http://core.svn.wordpress.org/trunk@20836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b531b488cf
commit
2fa8066123
@ -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