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:
parent
ed754069ca
commit
33622d9179
|
@ -4420,11 +4420,12 @@
|
||||||
function captureSettingModifiedDuringSave( setting ) {
|
function captureSettingModifiedDuringSave( setting ) {
|
||||||
modifiedWhileSaving[ setting.id ] = true;
|
modifiedWhileSaving[ setting.id ] = true;
|
||||||
}
|
}
|
||||||
api.bind( 'change', captureSettingModifiedDuringSave );
|
|
||||||
|
|
||||||
submit = function () {
|
submit = function () {
|
||||||
var request, query, settingInvalidities = {}, latestRevision = api._latestRevision;
|
var request, query, settingInvalidities = {}, latestRevision = api._latestRevision;
|
||||||
|
|
||||||
|
api.bind( 'change', captureSettingModifiedDuringSave );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Block saving if there are any settings that are marked as
|
* Block saving if there are any settings that are marked as
|
||||||
* invalid from the client (not from the server). Focus on
|
* invalid from the client (not from the server). Focus on
|
||||||
|
|
Loading…
Reference in New Issue