Customize: Prevent `customize_autosaved=on` from getting added to frontend preview URLs.
Amends [41969]. See #39896, #42450. Fixes #42433. Built from https://develop.svn.wordpress.org/trunk@42118 git-svn-id: http://core.svn.wordpress.org/trunk@41947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c15b2a0908
commit
a74afff787
|
@ -7775,9 +7775,6 @@
|
||||||
if ( ! api.state( 'activated' ).get() ) {
|
if ( ! api.state( 'activated' ).get() ) {
|
||||||
params.customize_theme = api.settings.theme.stylesheet;
|
params.customize_theme = api.settings.theme.stylesheet;
|
||||||
}
|
}
|
||||||
if ( api.settings.changeset.autosaved || ! api.state( 'saved' ).get() ) {
|
|
||||||
params.customize_autosaved = 'on';
|
|
||||||
}
|
|
||||||
|
|
||||||
urlParser.search = $.param( params );
|
urlParser.search = $.param( params );
|
||||||
return urlParser.href;
|
return urlParser.href;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-RC1-42117';
|
$wp_version = '4.9-RC1-42118';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue