Ticket #29460: 29460.diff
File 29460.diff, 1.1 KB (added by , 10 years ago) |
---|
-
wp-includes/nav-menu-template.php
277 277 278 278 // get the first menu that has items if we still can't find a menu 279 279 if ( ! $menu && !$args->theme_location ) { 280 $menus = wp_get_nav_menus( array( 'orderby' => 'name' ));280 $menus = wp_get_nav_menus(); 281 281 foreach ( $menus as $menu_maybe ) { 282 282 if ( $menu_items = wp_get_nav_menu_items( $menu_maybe->term_id, array( 'update_post_term_cache' => false ) ) ) { 283 283 $menu = $menu_maybe; -
wp-includes/nav-menu.php
466 466 * @return array menu objects 467 467 */ 468 468 function wp_get_nav_menus( $args = array() ) { 469 $defaults = array( 'hide_empty' => false, 'orderby' => 'n one' );469 $defaults = array( 'hide_empty' => false, 'orderby' => 'name' ); 470 470 $args = wp_parse_args( $args, $defaults ); 471 471 472 472 /**