WordPress.org

Make WordPress Core

Ticket #25263: 25263.patch

File 25263.patch, 545 bytes (added by Frank Klein, 7 years ago)
  • wp-includes/default-widgets.php

     
    11341134                $nav_menu = isset( $instance['nav_menu'] ) ? $instance['nav_menu'] : '';
    11351135
    11361136                // Get menus
    1137                 $menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
     1137                $menus = wp_get_nav_menus( array( 'orderby' => 'name' ) );
    11381138
    11391139                // If no menus exists, direct the user to go and create some.
    11401140                if ( !$menus ) {