[Plugin: Simple Facebook Connect] Breaks my plugins that use CAPTCHA – I have fix
-
Two SFC plugins are causing a conflict with two of my plugins.
My plugins:
Fast and Secure Contact Form
https://www.ads-software.com/extend/plugins/si-contact-form/SI CAPTCHA Anti-Spam
https://www.ads-software.com/extend/plugins/si-captcha-for-wordpress/Problem:
If SFC – Like Button or SFC – Share Button is activated then my CAPTCHA image is being selected for a LIKE or SHARE image. This causes a new session that breaks the captcha cookie rendering the CAPTCHA unusable. Also the user will see an error when posting the form:
“Could not read CAPTCHA cookie.”Easy Fix:
Edit the code in sfc-like.php and sfc-share.php to prevent the secureimage-captcha image from ever being selected.In each file sfc-like.php and sfc-share.php
Find:
if ( isset($img['src']) ) {
Replace with:
if ( isset($img['src']) && !preg_match('/captcha-secureimage/', $img['src'])) {
- The topic ‘[Plugin: Simple Facebook Connect] Breaks my plugins that use CAPTCHA – I have fix’ is closed to new replies.