Customize: Wait for processing state to clear before starting to captureSettingModifiedDuringSave.

See #32941.
Fixes #40729.

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


git-svn-id: http://core.svn.wordpress.org/trunk@40488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-05-11 06:42:43 +00:00
parent 746edb23f2
commit 2353930f90
3 changed files with 4 additions and 3 deletions

View File

@ -4420,11 +4420,12 @@
function captureSettingModifiedDuringSave( setting ) {
modifiedWhileSaving[ setting.id ] = true;
}
api.bind( 'change', captureSettingModifiedDuringSave );
submit = function () {
var request, query, settingInvalidities = {}, latestRevision = api._latestRevision;
api.bind( 'change', captureSettingModifiedDuringSave );
/*
* Block saving if there are any settings that are marked as
* invalid from the client (not from the server). Focus on

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40626';
$wp_version = '4.8-alpha-40627';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.