[wp-hackers] Apostrophes and is_email() alternative

Tom Barrett tcbarrett at gmail.com
Thu Oct 3 11:17:40 UTC 2013


I'm looking at an 'apostrophe in email' issue. The codex page for
is_email() says it is deprecated (but not what to use instead). Other
functions in core appear to use the function (eg: sanitize_option()).

Trying to add a user to a vanilla 3.6.1 install with an apostrophe in the
email fails.

What is the accepted method to check email validity (for use as WordPress
user accounts)?

Is there a good reason not to use FILTER_VALIDATE_EMAIL ?

Thanks.

-- 
http://www.tcbarrett.com | http://gplus.to/tcbarrett |
http://twitter.com/tcbarrett


More information about the wp-hackers mailing list