[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 18:36:29 UTC 2011


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

Comment (by sc0ttkclark):

 Went the direction if is_numeric vs is_int so that it would avoid issues
 with strings not being handles as numbers (is_int requires an integer)

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


More information about the wp-trac mailing list