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

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 25 19:31:57 UTC 2009


#11620: Upload Handling. Use is_numeric instead of ctype_digit.
-------------------------+--------------------------------------------------
 Reporter:  markup       |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  high         |   Milestone:  3.0      
Component:  Upload       |     Version:  2.9      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by markup):

 Replying to [comment:2 markup]:

 Sorry. This one is correct.

 {{{
 if(!function_exists('ctype_digit')) {
  function ctype_digit( $num ) { return is_numeric( $num ); }
 }
 }}}

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


More information about the wp-trac mailing list