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. git-svn-id: https://develop.svn.wordpress.org/trunk@36432 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
62705eef00
commit
15002741b5
@ -17,7 +17,6 @@
|
||||
|
||||
// Link settings.
|
||||
api.Menus.data = {
|
||||
nonce: '',
|
||||
itemTypes: [],
|
||||
l10n: {},
|
||||
menuItemTransport: 'postMessage',
|
||||
@ -248,7 +247,7 @@
|
||||
$section.addClass( 'loading' );
|
||||
self.loading = true;
|
||||
params = {
|
||||
'customize-menus-nonce': api.Menus.data.nonce,
|
||||
'customize-menus-nonce': api.settings.nonce['customize-menus'],
|
||||
'wp_customize': 'on',
|
||||
'search': self.searchTerm,
|
||||
'page': page
|
||||
|
Loading…
Reference in New Issue
Block a user