Menus: Add `social` as tertiary mapping group

Allows mapping of all social menus that include the term `social` in their slug.

See #39692.


git-svn-id: https://develop.svn.wordpress.org/trunk@41801 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2017-10-09 21:22:57 +00:00
parent 35fffc77e1
commit 2ab27649f6
1 changed files with 1 additions and 0 deletions

View File

@ -1119,6 +1119,7 @@ function wp_map_nav_menu_locations( $new_nav_menu_locations, $old_nav_menu_locat
$common_slug_groups = array( $common_slug_groups = array(
array( 'header', 'main', 'navigation', 'primary', 'top' ), array( 'header', 'main', 'navigation', 'primary', 'top' ),
array( 'bottom', 'footer', 'secondary', 'subsidiary' ), array( 'bottom', 'footer', 'secondary', 'subsidiary' ),
array( 'social' ),
); );
// Go through each group... // Go through each group...