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

Props celloexpressions.
Fixes #32726.


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


git-svn-id: http://core.svn.wordpress.org/trunk@33318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2015-07-21 17:02:24 +00:00
parent 4e8fc7b69c
commit 146befe7bf
5 changed files with 8 additions and 4 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,

File diff suppressed because one or more lines are too long

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' ),

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta3-33345';
$wp_version = '4.3-beta3-33346';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.