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.

Built from https://develop.svn.wordpress.org/trunk@42026


git-svn-id: http://core.svn.wordpress.org/trunk@41860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2017-10-25 22:29:49 +00:00
parent a6af74ec32
commit db00af7cc2
2 changed files with 3 additions and 3 deletions

View File

@ -1124,8 +1124,8 @@ function wp_map_nav_menu_locations( $new_nav_menu_locations, $old_nav_menu_locat
* from within the same group, make an educated guess and map it. * from within the same group, make an educated guess and map it.
*/ */
$common_slug_groups = array( $common_slug_groups = array(
array( 'header', 'main', 'navigation', 'primary', 'top' ), array( 'primary', 'menu-1', 'main', 'header', 'navigation', 'top' ),
array( 'bottom', 'footer', 'secondary', 'subsidiary' ), array( 'secondary', 'menu-2', 'footer', 'subsidiary', 'bottom' ),
array( 'social' ), array( 'social' ),
); );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-beta4-42025'; $wp_version = '4.9-beta4-42026';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.