Make WordPress Core

Changeset 36432


Ignore:
Timestamp:
02/01/2016 09:35:27 PM (11 years ago)
Author:
westonruter
Message:

Customizer: Fix searching for available nav menu items by updating reference to nonce.

Fixes regression introduced in [36414] where the nonce for listing available nav menu items was updated to use the new centralized location at wp.customize.settings.nonce, but the nonce for search did not get updated.

See #35617.

File:
1 edited

Legend:

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

    r36414 r36432  
    1818        // Link settings.
    1919        api.Menus.data = {
    20                 nonce: '',
    2120                itemTypes: [],
    2221                l10n: {},
    … …  
    249248                        self.loading = true;
    250249                        params = {
    251                                 'customize-menus-nonce': api.Menus.data.nonce,
     250                                'customize-menus-nonce': api.settings.nonce['customize-menus'],
    252251                                'wp_customize': 'on',
    253252                                'search': self.searchTerm,
Note: See TracChangeset for help on using the changeset viewer.