mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
4e8fc7b69c
commit
146befe7bf
@ -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,
|
||||
|
4
wp-admin/js/customize-nav-menus.min.js
vendored
4
wp-admin/js/customize-nav-menus.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
@ -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' ),
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user