mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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
This commit is contained in:
parent
b77baf5afb
commit
5de87dcff1
@ -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() ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user