[wp-trac] [WordPress Trac] #53130: is_email() and sanitize_email() differ.

WordPress Trac noreply at wordpress.org
Sun May 2 14:09:02 UTC 2021


#53130: is_email() and sanitize_email() differ.
----------------------------+------------------------------
 Reporter:  DuisterDenHaag  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Mail            |     Version:  5.5
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by ayeshrajans):

 * keywords:  needs-patch =>


Comment:

 `is_email` function does accept email addresses with the plug sign.


 {{{#!php
 var_dump(is_email('info+admin at example.com'));
 // info+admin at example.com
 }}}

 Note the function returns the original email address on email addresses
 this function deems correct. If the `is_email` function returns false for
 you on such email address, it is possible that a plugin makes so by using
 `is_email` filter.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53130#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list