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

See #32941.
Fixes #40729.


git-svn-id: https://develop.svn.wordpress.org/trunk@40627 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-05-11 06:41:25 +00:00
parent ed754069ca
commit 33622d9179
1 changed files with 2 additions and 1 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