screen-reader-text CSS class only exists within the WordPress environment
the class does not exist when using iFrame forms due to these being used outside the WordPress context
prefixing with mailpoet-* to not interfere with the default WordPress screen-reader-text class
MAILPOET-4312
This commit renames two variables to make it easier to understand the
code responsible for adding a ReCapcha to a subscription form:
formData.recaptcha -> formData.recaptchaWidgetId
formData.data.recaptcha -> formData.data.recaptchaResponseToken
Before this change it was harder to understand the difference between
formData.recaptcha and formData.data.recaptcha since they used the same
name.
[MAILPOET-4145]
This commit adds the required code to display the invisible ReCaptcha in
the frontend when a form is rendered and this type of captcha is
selected in the admin.
[MAILPOET-4145]
The only thing Security::generateToken was providing was a default value
for the $action, which created a pattern of using the same $action
everywhere, which may not be the best way to go.
Since it was essentially a wrapper for WP's built-in nonce functions,
it seemed clearer to use those functions directly to be more explicit
about how we're handling tokens.
[MAILPOET-2030]
We rendered correct html in the editor but it was still escaped on front end.
This commit allows rendering some basic html in image captions.
[MAILPOET-4029]