Make WordPress Core


Ignore:
Timestamp:
07/06/2015 07:12:48 PM (9 years ago)
Author:
westonruter
Message:

Customizer: Register controls and settings for nav_menu_locations even when there are no menus yet.

This change ensures that the first menu created can be assigned to a location without first saving and reloading the Customizer.

Props markoheijnen.
Fixes #32858.

File:
1 edited

Legend:

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

    r33077 r33094  
    25462546     */
    25472547    function displayNavMenuName( name ) {
     2548        name = name || '';
    25482549        name = $( '<div>' ).text( name ).html(); // Emulate esc_html() which is used in wp-admin/nav-menus.php.
    25492550        name = $.trim( name );
Note: See TracChangeset for help on using the changeset viewer.