reCaptcha Not Showing
-
This is more of an answer than a question. I noticed several posts with the same issue. In my case, the issue happened to be b/c my site is using SSL and the reCaptcha code doesn’t account for it. Here is my fix:
Edit /types/recaptcha.php. Change this code:
return "<div dir=\"ltr\">" . "<script type=\"text/javascript\"> var RecaptchaOptions = { ". "theme : '".$theme."', ". "lang : '".$lang."', tabindex : 100 }; </script>". recaptcha_get_html($publickey). (isset($_POST['recaptcha_challenge_field'])?"<br /> <em> ".__("The reCAPTCHA was incorrect.", 'wordpress-form-manager')." </em>":"") . "</div>";
To look like this code:
$use_ssl = ((isset($_SERVER['HTTPS'])) && !($_SERVER['HTTPS'] == 'off')) ? true : false; return "<div dir=\"ltr\">" . "<script type=\"text/javascript\"> var RecaptchaOptions = { ". "theme : '".$theme."', ". "lang : '".$lang."', tabindex : 100 }; </script>". recaptcha_get_html($publickey,null,$use_ssl). (isset($_POST['recaptcha_challenge_field'])?"<br /> <em> ".__("The reCAPTCHA was incorrect.", 'wordpress-form-manager')." </em>":"") . "</div>";
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘reCaptcha Not Showing’ is closed to new replies.