From 2fa8066123f72bebd612e6830339bd6f7f64b04c Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 May 2012 19:50:58 +0000 Subject: [PATCH] Disambiguate menu_order. Props markjaquith. fixes #20711 git-svn-id: http://core.svn.wordpress.org/trunk@20836 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/query.php b/wp-includes/query.php index bd511182c..dc56be47e 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2343,6 +2343,7 @@ class WP_Query { switch ( $orderby ) { case 'menu_order': + $orderby = "$wpdb->posts.menu_order"; break; case 'ID': $orderby = "$wpdb->posts.ID";