WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/29/2014 03:44:26 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Change the default orderby value in wp_get_nav_menus() to 'name'.

props voldemortensen, igmoweb.
fixes #29460.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-widgets.php

    r29338 r29792  
    13451345
    13461346        // Get menus
    1347         $menus = wp_get_nav_menus( array( 'orderby' => 'name' ) );
     1347        $menus = wp_get_nav_menus();
    13481348
    13491349        // If no menus exists, direct the user to go and create some.
Note: See TracChangeset for help on using the changeset viewer.