Customize: Ensure `customized` changes pending to be written into changeset are successfully injected into Ajax requests in preview.

Amends [40704].
See #42162.

Built from https://develop.svn.wordpress.org/trunk@41804


git-svn-id: http://core.svn.wordpress.org/trunk@41638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-10-10 04:51:47 +00:00
parent ef1c95ff91
commit 132c847087
3 changed files with 6 additions and 2 deletions

View File

@ -451,6 +451,10 @@
if ( ! api.settings.theme.active ) {
queryParams.customize_theme = api.settings.theme.stylesheet;
}
// Ensure preview nonce is included with every customized request, to allow post data to be read.
queryParams.customize_preview_nonce = api.settings.nonce.preview;
urlParser.search = $.param( queryParams );
options.url = urlParser.href;
};

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-beta1-41803';
$wp_version = '4.9-beta1-41804';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.