mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01: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…
x
Reference in New Issue
Block a user