Make WordPress Core

Changeset 13407


Ignore:
Timestamp:
02/25/2010 09:13:13 PM (15 years ago)
Author:
ryan
Message:

Order menus by ID so that the lowest ID is always used when guessing which menu to use in wp_nav_menu(). see #11817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu.php

    r13406 r13407  
    6464
    6565function wp_get_nav_menus() {
    66     return get_terms( 'nav_menu', array( 'hide_empty' => false ) );
     66    return get_terms( 'nav_menu', array( 'hide_empty' => false, 'orderby' => 'id' ) );
    6767}
    6868
Note: See TracChangeset for help on using the changeset viewer.