Make WordPress Core


Ignore:
Timestamp:
02/18/2016 05:15:28 PM (8 years ago)
Author:
ocean90
Message:

Customizer: In nav menus show the location name instead of slug.

Props ryankienstra.
Fixes #34755.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r36422 r36573  
    351351                'unnamed'           => _x( '(unnamed)', 'Missing menu name.' ),
    352352                'custom_label'      => __( 'Custom Link' ),
    353                 /* translators: %s: menu location slug */
     353                /* translators: %s: menu location */
    354354                'menuLocation'      => _x( '(Currently set to: %s)', 'menu' ),
    355355                'menuNameLabel'     => __( 'Menu Name' ),
     
    382382                'nav_menu_item' => $temp_nav_menu_item_setting->default,
    383383            ),
     384            'locationSlugMappedToName' => get_registered_nav_menus(),
    384385        );
    385386
Note: See TracChangeset for help on using the changeset viewer.