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

    r29717 r29792  
    466466 */
    467467function wp_get_nav_menus( $args = array() ) {
    468     $defaults = array( 'hide_empty' => false, 'orderby' => 'none' );
     468    $defaults = array( 'hide_empty' => false, 'orderby' => 'name' );
    469469    $args = wp_parse_args( $args, $defaults );
    470470
Note: See TracChangeset for help on using the changeset viewer.