[wp-trac] [WordPress Trac] #18927: is_email() check for string first

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 15 02:27:30 UTC 2011


#18927: is_email() check for string first
-----------------------------+------------------------------
 Reporter:  jkudish          |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Formatting       |     Version:  3.3
 Severity:  minor            |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------------
Changes (by nacin):

 * keywords:  has-patch => has-patch close


Comment:

 Why? is_email() should only get a string. Passing it something that isn't
 scalar is a developer error. I'd rather the developer see a fatal error
 than a suppressed false.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18927#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list