[wp-trac] Re: [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 13:56:10 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                                   |   Resolution:           
 Keywords:  gallery, image, attachment, url, upload  |  
-----------------------------------------------------+----------------------
Comment (by andy):

 The URLs are designed that way. The word "attachment" is added to the path
 because without it WP_Rewrite doesn't know that the numeric part of the
 URL refers to an attachment name.

 Are these problems caused by core template logic or introduced by specific
 templates that are unaware of the standard URL pattern for numeric
 attachment slugs?

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


More information about the wp-trac mailing list