Merge "Turnstile's response field uses a static name instead of IDs"

This commit is contained in:
jenkins-bot 2024-07-11 08:41:05 +00:00 committed by Gerrit Code Review
commit d9d71e173e

View file

@ -41,7 +41,7 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( () => {
// Register extra fields
target.saveFields.wpCaptchaWord = function () {
// eslint-disable-next-line no-jquery/no-global-selector
return $( '#cf-turnstile-response' ).val();
return $( 'input[ name="cf-turnstile-response" ]' ).val();
};
this.getReadyPromise()