[wp-trac] Re: [WordPress Trac] #6437: Image/Page naming collisions (was: Media Library file permalink page slug)

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


#6437: Image/Page naming collisions
---------------------------+------------------------------------------------
 Reporter:  SpencerLavery  |       Owner:  ryan                                                  
     Type:  defect (bug)   |      Status:  new                                                   
 Priority:  normal         |   Milestone:  2.8                                                   
Component:  Permalinks     |     Version:  2.7.1                                                 
 Severity:  normal         |    Keywords:  menu media attachment  slug permalink naming collision
---------------------------+------------------------------------------------
Changes (by truthmedia):

 * cc: truthmedia (added)
  * keywords:  menu media attachment  slug permalink => menu media
               attachment  slug permalink naming collision
  * version:  2.7 => 2.7.1


Comment:

 Still experiencing this on WP 2.7.1.

 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/6437#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list