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 ) {
|
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
Block a user