[wp-trac] [WordPress Trac] #7210: Gallery image with file-name that is_numeric() displays 'attachment' in URL

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 30 06:00:16 GMT 2008


#7210: Gallery image with file-name that is_numeric() displays 'attachment' in URL
----------------------------+-----------------------------------------------
 Reporter:  na3s            |       Owner:  anonymous                              
     Type:  defect          |      Status:  new                                    
 Priority:  normal          |   Milestone:  2.6                                    
Component:  Administration  |     Version:  2.5.1                                  
 Severity:  normal          |    Keywords:  gallery, image, attachment, url, upload
----------------------------+-----------------------------------------------
 This issue with the gallery came to my attention while helping another
 wordpress member (CelestialGraffiti) troubleshoot an issue of a bug in the
 Image Gallery feature. If a user uploads an image with a file-name that is
 *only* numeric characters, it will display the file as an 'attachment' in
 the URL; ie sitename.tld/category/page/attachment/1/. However, if the
 image contains any Alpha characters, the appended 'attachment' is left out
 of the URL, and is formatted in the intended manor.

 This can cause problems in the template; ie: inconsistently showing a
 'Comment Form' or other argumentative template elements.

 This is a minor issue, but one that is important to address to maintain
 consistent behavior with the gallery.

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


More information about the wp-trac mailing list