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: https://develop.svn.wordpress.org/trunk@13407 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
60cb61e54f
commit
2cc6791fe7
|
@ -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…
Reference in New Issue