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-admin/nav-menus.php

    r29206 r29792  
    381381
    382382// Get all nav menus.
    383 $nav_menus = wp_get_nav_menus( array('orderby' => 'name') );
     383$nav_menus = wp_get_nav_menus();
    384384$menu_count = count( $nav_menus );
    385385
Note: See TracChangeset for help on using the changeset viewer.