Rename variables to make the ReCaptcha code easier to understand
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 is contained in:
@@ -113,7 +113,7 @@ class Renderer {
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
<input class="mailpoet_recaptcha_field" type="hidden" name="recaptcha">
|
||||
<input class="mailpoet_recaptcha_field" type="hidden" name="recaptchaWidgetId">
|
||||
</div>';
|
||||
|
||||
return $html;
|
||||
|
Reference in New Issue
Block a user