﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
9539,Image/Page naming collisions,truthmedia,Denis-de-Bernardy,"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. ",defect (bug),closed,normal,2.8,Permalinks,2.7.1,major,fixed,has-patch tested commit,truthmedia
