[wp-trac] [WordPress Trac] #48951: email_too_short is not good email validation candidate

WordPress Trac noreply at wordpress.org
Sun Aug 9 18:18:08 UTC 2020


#48951: email_too_short is not good email validation candidate
-----------------------------+------------------------------
 Reporter:  dingo_d          |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  low              |   Milestone:  Awaiting Review
Component:  Mail             |     Version:  5.4
 Severity:  trivial          |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+------------------------------
Changes (by cbutlerjr):

 * priority:  normal => low
 * type:  defect (bug) => feature request
 * severity:  normal => trivial


Comment:

 but WordPress doesn't so you don't have consistent behavior

 WP runs filters in both `is_email()` and `sanitize_email()`.  If
 necessary, you can run a filter on either of these so that if the
 `$context` is 'email_too_short', you return `true` instead.

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


More information about the wp-trac mailing list