WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/25/17 22:28:43 (3 months ago)
Author:
obenland
Message:

Menus: Add menu-$i slugs to mapping groups

Helps to future proof the feature.
Also orders slugs by popularity to optimize mapping time.

See #39692.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/menu/nav-menu.php

    r41811 r42026  
    173173 
    174174        $expected_nav_menu_locations = array( 
    175             'main' => 1, 
    176             'primary' => 2, 
     175            'primary' => 1, 
     176            'main' => 2, 
    177177        ); 
    178178        $this->assertEquals( $expected_nav_menu_locations, $new_next_theme_nav_menu_locations ); 
Note: See TracChangeset for help on using the changeset viewer.