Customizer: Add label for menu names when editing a menu.

Props celloexpressions.
Fixes #32726.



git-svn-id: https://develop.svn.wordpress.org/trunk@33346 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2015-07-21 17:01:25 +00:00
parent 940b06cff2
commit 5afdbfdb01
3 changed files with 5 additions and 1 deletions

View File

@ -705,7 +705,7 @@
params: {
type: 'nav_menu_name',
content: '<li id="customize-control-' + section.id.replace( '[', '-' ).replace( ']', '' ) + '-name" class="customize-control customize-control-nav_menu_name"></li>', // @todo core should do this for us; see #30741
label: '',
label: api.Menus.data.l10n.menuNameLabel,
active: true,
section: section.id,
priority: 0,

View File

@ -1880,6 +1880,9 @@ class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control {
protected function content_template() {
?>
<label>
<# if ( data.label ) { #>
<span class="customize-control-title screen-reader-text">{{ data.label }}</span>
<# } #>
<input type="text" class="menu-name-field live-update-section-title" />
</label>
<?php

View File

@ -315,6 +315,7 @@ final class WP_Customize_Nav_Menus {
'custom_label' => __( 'Custom Link' ),
/* translators: %s: Current menu location */
'menuLocation' => __( '(Currently set to: %s)' ),
'menuNameLabel' => __( 'Menu Name' ),
'itemAdded' => __( 'Menu item added' ),
'itemDeleted' => __( 'Menu item deleted' ),
'menuAdded' => __( 'Menu created' ),