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 ) {
|
switch ( $orderby ) {
|
||||||
case 'menu_order':
|
case 'menu_order':
|
||||||
|
$orderby = "$wpdb->posts.menu_order";
|
||||||
break;
|
break;
|
||||||
case 'ID':
|
case 'ID':
|
||||||
$orderby = "$wpdb->posts.ID";
|
$orderby = "$wpdb->posts.ID";
|
||||||
|
|
Loading…
Reference in New Issue