Couple of bugs
-
First plugin did not work until I deleted the site key and secret from contact form 7’s integrations page (
/wp-admin/admin.php?page=wpcf7-integration
).Second, it saves erroneous backslashes in the options, like Invalid captcha error message because it uses the raw (backslash-escaped)
$_POST
variables and passes them throughsanitize_text_field()
which is meant for HTML (it escapes into HTML entities). You might want to usewp_strip_all_tags()
but you at least need to dostripslashes()
(and probablytrim()
) on them first.After working around those, the plugin operates as expected.
- The topic ‘Couple of bugs’ is closed to new replies.