diff --git src/wp-admin/js/customize-nav-menus.js src/wp-admin/js/customize-nav-menus.js
index 6dea2b4..b525424 100644
|
|
|
|
| 805 | 805 | /** |
| 806 | 806 | * @param {array} themeLocations |
| 807 | 807 | */ |
| 808 | | updateAssignedLocationsInSectionTitle: function( themeLocations ) { |
| | 808 | updateAssignedLocationsInSectionTitle: function( themeLocationSlugs ) { |
| 809 | 809 | var section = this, |
| 810 | 810 | $title; |
| 811 | 811 | |
| 812 | 812 | $title = section.container.find( '.accordion-section-title:first' ); |
| 813 | 813 | $title.find( '.menu-in-location' ).remove(); |
| 814 | | _.each( themeLocations, function( themeLocation ) { |
| | 814 | _.each( themeLocationSlugs, function( themeLocationSlug ) { |
| 815 | 815 | var $label = $( '<span class="menu-in-location"></span>' ); |
| 816 | | $label.text( api.Menus.data.l10n.menuLocation.replace( '%s', themeLocation ) ); |
| | 816 | var locationName = api.Menus.data.locationSlugMappedToName[ themeLocationSlug ]; |
| | 817 | $label.text( api.Menus.data.l10n.menuLocation.replace( '%s', locationName ) ); |
| 817 | 818 | $title.append( $label ); |
| 818 | 819 | }); |
| 819 | 820 | |
| 820 | | section.container.toggleClass( 'assigned-to-menu-location', 0 !== themeLocations.length ); |
| | 821 | section.container.toggleClass( 'assigned-to-menu-location', 0 !== themeLocationSlugs.length ); |
| 821 | 822 | |
| 822 | 823 | }, |
| 823 | 824 | |
diff --git src/wp-includes/class-wp-customize-nav-menus.php src/wp-includes/class-wp-customize-nav-menus.php
index 5453c17..b4e1c60 100644
|
|
|
final class WP_Customize_Nav_Menus { |
| 381 | 381 | 'nav_menu' => $temp_nav_menu_setting->default, |
| 382 | 382 | 'nav_menu_item' => $temp_nav_menu_item_setting->default, |
| 383 | 383 | ), |
| | 384 | 'locationSlugMappedToName' => get_registered_nav_menus(), |
| 384 | 385 | ); |
| 385 | 386 | |
| 386 | 387 | $data = sprintf( 'var _wpCustomizeNavMenusSettings = %s;', wp_json_encode( $settings ) ); |