[wp-trac] [WordPress Trac] #19918: Attachments are viewable from any permalink that matches their slug (was: File name convert to URL)
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 30 07:48:44 UTC 2012
#19918: Attachments are viewable from any permalink that matches their slug
--------------------------+--------------------------------------
Reporter: prorock | Owner: Adrian (designmodo.com)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.2
Severity: major | Resolution:
Keywords: |
--------------------------+--------------------------------------
Changes (by solarissmoke):
* version: 3.3.1 => 3.2
* component: Comments => Permalinks
Comment:
This seems to be a wider issue than what was originally reported.
Basically, you can view an attachment by appending it's slug to the link
for '''any''' post! To reproduce:
- Use pretty permalinks (the exact structure doesn't matter)
- Add an attachment to a post (e.g., with attachment URL `/2012/01/30/my-
post/my-attachment/`)
- Now you can view that attachment by appending the attachment slug to
'''any other post'''. For example `/2012/01/01/hello-world/my-attachment/`
or `/2011/11/01/another-random-post/my-attachment/`.
The name of the attachment doesn't matter.
I can reproduce this in WP 3.2 (and 3.3, trunk). Don't have an earlier
version running at the moment.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19918#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list