blaenk / wp-recaptcha

I gave ownership of this project to Google many years ago
Other
38 stars 16 forks source link

MailHide shouldn't be applied to email addresses within form input values. #37

Open KZeni opened 13 years ago

KZeni commented 13 years ago

I have had numerous cases where there's a form with a hidden input field pre-populated to determine the email notification recipient, or something similar to that. The problem arises when the code for the form suddenly becomes <input type="hidden" name="recipient" value="<span class="mh-email"... and so on (therefore totally breaking the form).

I see there's code that looks to see if an email is hyperlinked, but it would be tremendously helpful if the same would be done for if an email is within an input tag.

I was using remove_filter for various situations to get around this in the past, but the newest version's object-oriented functions makes remove_filter not able to disable this on a per-case scenario. I've had to disable mailhide entirely to resolve this in the meantime, but I'd love to get back to using this plugin's full set of capabilities.