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:
Ryan Boren 2012-05-21 19:50:58 +00:00
parent 039002fbc7
commit c392250983

View File

@ -2343,6 +2343,7 @@ class WP_Query {
switch ( $orderby ) {
case 'menu_order':
$orderby = "$wpdb->posts.menu_order";
break;
case 'ID':
$orderby = "$wpdb->posts.ID";