Bug with non-JS ReCaptcha display – FIX PROVIDED
-
I’ve spotted a bug in in the display of the ReCaptcha challenge on the registration page, where it didn’t display correctly for browsers with JS disabled.
I tracked this down to the Theme_My_Login_Recaptcha::recaptcha_display() method.
The fix is simply to add a ‘//’ to the beginning of the iframe tag src attribute (to support both ‘https://’ and ‘https://’ protocols).
Here’s the offending line, with the added ‘//’s…
<iframe src="//<?php echo Theme_My_Login_Recaptcha::RECAPTCHA_API_URI; ?>/noscript?k=<?php echo $Theme_My_Login_Recaptcha->get_option( 'public_key' ); ?>" height="300" width="500" frameborder="0"></iframe><br>
For now I’ve updated my theme to deregister your ‘register_form’ hook & add my own one with the hook in, but thought you’d like to know so you can include this in your next update.
Thanks :o)
- The topic ‘Bug with non-JS ReCaptcha display – FIX PROVIDED’ is closed to new replies.