Merge "Keep sending CAPTCHA info if an unrelated save error happens"

This commit is contained in:
jenkins-bot 2024-08-28 20:21:28 +00:00 committed by Gerrit Code Review
commit 484f30b4a5

View file

@ -49,11 +49,6 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( () => {
target.saveFields.wpCaptchaWord = function () {
return captchaInput.getCaptchaWord();
};
// Unregister extra fields on save attempt
target.saveDialog.once( 'save', () => {
delete target.saveFields.wpCaptchaId;
delete target.saveFields.wpCaptchaWord;
} );
// ProcessDialog's error system isn't great for this yet.
target.saveDialog.clearMessage( 'api-save-error' );