[wp-hackers] Apostrophes and is_email() alternative

Ian Dunn ian at iandunn.name
Thu Oct 3 17:26:10 UTC 2013


FYI, there are some Core tickets around this (and related) issues:

http://core.trac.wordpress.org/ticket/16867
http://core.trac.wordpress.org/ticket/18658
http://core.trac.wordpress.org/ticket/18039


On 10/3/13 7:42 AM, Tom Barrett wrote:
> Thanks JD! Much clearer.
>
> Thanks Thomas, the gist needs a little tweaking as it doesn't work in it's
> current state.
>
> The next step in this lovely journey is that the $email var passed around
> in the hooks has the apostrophe escaped. And back slashes are not valid.
>
> This is fun :)
>
> // Sent by Nexus
> On 3 Oct 2013 13:47, "J.D. Grimes" <jdg at codesymphony.co> wrote:
>
>>
>> On Oct 3, 2013, at 7:17 AM, Tom Barrett <tcbarrett at gmail.com> wrote:
>>
>>> 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()).
>>
>> Right, it really isn't deprecated, just the second argument. I've updated
>> the codex page to make this clear.



More information about the wp-hackers mailing list