Make WordPress Core


Ignore:
Timestamp:
10/21/2016 05:00:29 PM (8 years ago)
Author:
ocean90
Message:

Revert [38859] due to an incomplete implementation.

See https://core.trac.wordpress.org/ticket/37128#comment:27.
See #37128.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

    r38859 r38863  
    533533
    534534        if ( ARRAY_A === $args['output'] ) {
    535             $items = wp_list_sort( $items, array(
    536                 $args['output_key'] => 'ASC',
    537             ) );
     535            $GLOBALS['_menu_item_sort_prop'] = $args['output_key'];
     536            usort( $items, '_sort_nav_menu_items' );
    538537            $i = 1;
    539538
Note: See TracChangeset for help on using the changeset viewer.