[wp-trac] [WordPress Trac] #6534: Use of ctype_digit in link_template.php can break uploader.

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 1 22:21:16 GMT 2008


#6534: Use of ctype_digit in link_template.php can break uploader.
---------------------+------------------------------------------------------
 Reporter:  Otto42   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  high     |   Milestone:  2.5.1    
Component:  General  |     Version:  2.5      
 Severity:  major    |    Keywords:           
---------------------+------------------------------------------------------
 The function ctype_digit() is used in get_attachment_link() in link-
 template.php, and I've had at least one user tell me that this broke the
 upload functionality for him.

 He reports running PHP 4.3.10 and getting this error:
 {{{
 [Tue Apr 01 23:32:51 2008] [error] [client x.x.x.x] PHP Fatal
 error:  Call to undefined function:  ctype_digit() in /xxx/wp-includes
 /link-template.php on line 182,
 referer: http://xxx/wp-admin/media-
 upload.php?type=image&tab=library&post_id=1&post_mime_type=&s=&m=200804
 }}}

 He also reports that replacing it with is_numeric appears to work fine.

 Similar ticket: #5481

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6534>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list