Image/Page naming collisions
|Reported by:||truthmedia||Owned by:||Denis-de-Bernardy|
|Severity:||major||Keywords:||has-patch tested commit|
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.
Change History (14)
- Keywords needs-patch added; media slug naming collisions removed
- Keywords has-patch tested commit added; needs-patch removed
- Owner changed from ryan to Denis-de-Bernardy
- Status changed from new to accepted