From 2ab27649f6159a080319ff3fc763b86c12ceaccf Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 9 Oct 2017 21:22:57 +0000 Subject: [PATCH] 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 --- src/wp-includes/nav-menu.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php index 53089a946b..38ef5c89bc 100644 --- a/src/wp-includes/nav-menu.php +++ b/src/wp-includes/nav-menu.php @@ -1119,6 +1119,7 @@ function wp_map_nav_menu_locations( $new_nav_menu_locations, $old_nav_menu_locat $common_slug_groups = array( array( 'header', 'main', 'navigation', 'primary', 'top' ), array( 'bottom', 'footer', 'secondary', 'subsidiary' ), + array( 'social' ), ); // Go through each group...