[wp-trac] [WordPress Trac] #33920: `wp_old_slug_redirect` ignores rewrite endpoints
WordPress Trac
noreply at wordpress.org
Thu Sep 24 10:44:50 UTC 2015
#33920: `wp_old_slug_redirect` ignores rewrite endpoints
------------------------------------------------------+------------------
Reporter: swissspidy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Query | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests needs-refresh | Focuses:
------------------------------------------------------+------------------
Changes (by swissspidy):
* keywords: has-patch needs-unit-tests => has-patch needs-unit-tests
needs-refresh
Comment:
The new patch adds unit tests using the method you suggested.
While testing I noticed that WordPress doesn't properly redirect feed
URLs, even with the patch applied.
* /old-slug/feed/ doesn't redirect to /new-slug/feed/ but instead shows a
feed for a non-existent post.
* /old-slug/trackback/ redirects to /new-slug/
* /old-slug/comments/feed/ redirects to /old-slug/feed/.
This is because feeds and trackbacks are pretty much hardcoded and not
added via add_rewrite_endpoint.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33920#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list