[wp-trac] [WordPress Trac] #19918: Attachments are viewable from any permalink that matches their slug
WordPress Trac
noreply at wordpress.org
Sat Sep 26 11:26:37 UTC 2015
#19918: Attachments are viewable from any permalink that matches their slug
--------------------------+--------------------------------------
Reporter: prorock | Owner: Adrian (designmodo.com)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.4
Component: Permalinks | Version: 3.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+--------------------------------------
Changes (by swissspidy):
* keywords: has-patch => needs-patch
* status: closed => reopened
* resolution: fixed =>
Comment:
[34272] broke attachment endpoints
To reproduce:
1. Add a rewrite endpoint, e.g. by using `add_rewrite_endpoint( 'embed',
EP_ALL );` or just `add_rewrite_endpoint( 'embed', EP_ATTACHMENT );`
2. Upload an attachment to a post.
3. Visit the attachment URL with that endpoint, e.g. `http://example.org
/my-awesome-post/sample-attachment/embed/`.
4. `redirect_canonical` redirects you to `http://example.org/my-awesome-
post/sample-attachment/`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19918#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list