| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.Security.EscapeOutput.HeredocOutputNotEscaped, PluginCheck.CodeAnalysis.Heredoc -- PFBC framework extension, HTML output is controlled | |
| 3 | 2 | class AccuaForm_Element_Captcha extends Element { |
| 4 | 3 | protected $privateKey = "6LcazwoAAAAAAD-auqUl-4txAK3Ky5jc5N3OXN0_"; |
| 5 | 4 | protected $publicKey = "6LcazwoAAAAAADamFkwqj5KN1Gla7l4fpMMbdZfi"; |
| 6 | 5 | |
| @@ -8,9 +7,9 @@ | ||
| 8 | 7 | if ($properties === null && is_array($unused)) { |
| 9 | 8 | $properties = $unused; |
| 10 | 9 | } |
| 11 | 10 | parent::__construct($label, "recaptcha_response_field", $properties); |
| 12 | - $validator = new AccuaForm_Validation_Captcha(__("The reCAPTCHA response provided was incorrect. Please retry.", 'contact-forms')); | |
| 11 | + $validator = new AccuaForm_Validation_Captcha(__("The reCATPCHA response provided was incorrect. Please re-try.", 'contact-forms')); | |
| 13 | 12 | $validator->configure(array('privateKey'=>$this->privateKey)); |
| 14 | 13 | $this->setValidation($validator); |
| 15 | 14 | } |
| 16 | 15 | |
| @@ -16,9 +15,9 @@ | ||
| 16 | 15 | |
| 17 | 16 | public function render() { |
| 18 | 17 | $js_lang = _accua_forms_json_encode($this->form->getLanguage()); |
| 19 | 18 | $js_field_id = _accua_forms_json_encode($this->attributes["id"]); |
| 20 | - $js_path = _accua_forms_json_encode(ACCUA_FORMS_DIR_URL . 'assets/js/frontend/recaptcha.js'); | |
| 19 | + $js_path = _accua_forms_json_encode(ACCUA_FORMS_DIR_URL . 'accua-recaptcha.js'); | |
| 21 | 20 | $js_publicKey = _accua_forms_json_encode($this->publicKey); |
| 22 | 21 | |
| 23 | 22 | $field_id = htmlspecialchars($this->attributes["id"], ENT_QUOTES); |
| 24 | 23 | $publicKey = htmlspecialchars($this->publicKey, ENT_QUOTES); |