[wp-trac] [WordPress Trac] #16101: Numeric term fields are strings

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 5 02:00:43 UTC 2011


#16101: Numeric term fields are strings
--------------------------+------------------------------
 Reporter:  foofy         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by scribu):

 From the PHP manual on is_numeric():

 > Finds whether the given variable is numeric. Numeric strings consist of
 optional sign, any number of digits, optional decimal part and optional
 exponential part. Thus +0123.45e6 is a valid numeric value. Hexadecimal
 notation (0xFF) is allowed too but only without sign, decimal and
 exponential part.

 This could cause subtle bugs.

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


More information about the wp-trac mailing list