[wp-trac] [WordPress Trac] #11620: Upload Handling. Use is_numeric instead of ctype_digit.

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 26 04:15:54 UTC 2009


#11620: Upload Handling. Use is_numeric instead of ctype_digit.
--------------------------+-------------------------------------------------
 Reporter:  markup        |       Owner:                  
     Type:  defect (bug)  |      Status:  new             
 Priority:  high          |   Milestone:  2.9.1           
Component:  Upload        |     Version:  2.9             
 Severity:  normal        |    Keywords:  has-patch commit
--------------------------+-------------------------------------------------
Changes (by nacin):

  * type:  enhancement => defect (bug)
  * milestone:  3.0 => 2.9.1


Comment:

 This should be 2.9.1, as this was introduced in 2.9 and therefore is a
 regression from 2.8.

 Replying to [comment:3 markup]:
 > if(!function_exists('ctype_digit'))
 We would generally add those functions to compat.php. A plugin author
 could use it without knowing the ramifications, but at the same time, I
 don't think we currently account for any functions from extensions.

 I grepped core and could not find another ctype_* function in use.

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


More information about the wp-trac mailing list