From 5de87dcff15d5ae44ed2b104d4bcf7577ec8e014 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 25 Feb 2010 21:13:13 +0000 Subject: [PATCH] Order menus by ID so that the lowest ID is always used when guessing which menu to use in wp_nav_menu(). see #11817 git-svn-id: http://svn.automattic.com/wordpress/trunk@13407 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php index ad002ee63d..55faffb6fe 100644 --- a/wp-includes/nav-menu.php +++ b/wp-includes/nav-menu.php @@ -63,7 +63,7 @@ function wp_get_nav_menu( $menu ) { } function wp_get_nav_menus() { - return get_terms( 'nav_menu', array( 'hide_empty' => false ) ); + return get_terms( 'nav_menu', array( 'hide_empty' => false, 'orderby' => 'id' ) ); } function wp_get_nav_menu_items( $menu, $args = array() ) {