From 5afdbfdb01239f6a6f7a910c340e1f7331808567 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 21 Jul 2015 17:01:25 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/customize-nav-menus.js | 2 +- src/wp-includes/class-wp-customize-control.php | 3 +++ src/wp-includes/class-wp-customize-nav-menus.php | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/js/customize-nav-menus.js b/src/wp-admin/js/customize-nav-menus.js index 8f51e7b132..58c27a8d57 100644 --- a/src/wp-admin/js/customize-nav-menus.js +++ b/src/wp-admin/js/customize-nav-menus.js @@ -705,7 +705,7 @@ params: { type: 'nav_menu_name', content: '
  • ', // @todo core should do this for us; see #30741 - label: '', + label: api.Menus.data.l10n.menuNameLabel, active: true, section: section.id, priority: 0, diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index d343b8a6ae..cc9469e017 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -1880,6 +1880,9 @@ class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control { protected function content_template() { ?> __( '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' ),