[wp-trac] [WordPress Trac] #9539: Image/Page naming collisions

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 15 16:13:10 GMT 2009


#9539: Image/Page naming collisions
--------------------------+-------------------------------------------------
 Reporter:  truthmedia    |       Owner:  ryan                        
     Type:  defect (bug)  |      Status:  new                         
 Priority:  normal        |   Milestone:  2.8                         
Component:  Permalinks    |     Version:  2.7.1                       
 Severity:  major         |    Keywords:  media slug naming collisions
--------------------------+-------------------------------------------------
 This bug is discussed briefly in another related ticket, but should really
 be in it's own ticket.  Related comments found here:
 http://core.trac.wordpress.org/ticket/6437

 There seems to be a bug in WP 2.7.1 which allows images and other media to
 be assigned the same name/slug as pages.  This can result in an image
 being shown to the visitor instead of the page they were intended to see.

 Steps to duplicate: On a vanilla WP install with the URL rewriting
 enabled, attach an image called test.jpg to the About page. Then create a
 sub-page under About called "Test". When attempting to view /about/test/
 you will see the image, rather than the "Test" page.

 The same problem exists when uploading images directly to WordPress
 through the media library controls as opposed to attaching an image to a
 post. In this case, the image parent is set to '0' and the image test.jpg
 is viewable directly off the root of the site at /test/ and can override
 existing pages with the same name on the same level.

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


More information about the wp-trac mailing list