WordPress.org

Make WordPress Core

Changeset 33346


Ignore:
Timestamp:
07/21/2015 05:01:25 PM (6 years ago)
Author:
obenland
Message:

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

Props celloexpressions.
Fixes #32726.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r33339 r33346  
    706706                        type: 'nav_menu_name',
    707707                        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
    708                         label: '',
     708                        label: api.Menus.data.l10n.menuNameLabel,
    709709                        active: true,
    710710                        section: section.id,
  • trunk/src/wp-includes/class-wp-customize-control.php

    r33339 r33346  
    18811881        ?>
    18821882        <label>
     1883            <# if ( data.label ) { #>
     1884                <span class="customize-control-title screen-reader-text">{{ data.label }}</span>
     1885            <# } #>
    18831886            <input type="text" class="menu-name-field live-update-section-title" />
    18841887        </label>
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r33339 r33346  
    316316                /* translators: %s: Current menu location */
    317317                'menuLocation'      => __( '(Currently set to: %s)' ),
     318                'menuNameLabel'     => __( 'Menu Name' ),
    318319                'itemAdded'         => __( 'Menu item added' ),
    319320                'itemDeleted'       => __( 'Menu item deleted' ),
Note: See TracChangeset for help on using the changeset viewer.