[wp-trac] [WordPress Trac] #16974: absint to return 0 for values with non-numeric characters

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 26 22:56:57 UTC 2011


#16974: absint to return 0 for values with non-numeric characters
--------------------------+----------------------
 Reporter:  sc0ttkclark   |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  3.1
 Severity:  minor         |  Resolution:  wontfix
 Keywords:  has-patch     |
--------------------------+----------------------

Comment (by nacin):

 At that point, why even use absint()? Or only use absint() after using
 is_numeric(). Core won't use this, and you're not required to leverage
 absint.

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


More information about the wp-trac mailing list