[wp-trac] [WordPress Trac] #52737: Allow 301 redirect on _wp_old_slug to be filterable
WordPress Trac
noreply at wordpress.org
Mon Mar 22 05:01:16 UTC 2021
#52737: Allow 301 redirect on _wp_old_slug to be filterable
-------------------------------------+------------------------------
Reporter: brookedot | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Comment (by peterwilsoncc):
Thanks for the patch, this makes sense:
* Minor nit pick: the `permanent redirect` comment next to wp_redirect can
be deleted as it may not be permanent.
* I think it would be handy to include the post ID or post object as a
second parameter on the new filter, this will allow developers to use
different status codes under different circumstances.
(BTW: Trac's patch renaming can be weird, if you upload files with
`52737.patch` or `52737.diff` trac will do a better job working out if it
needs to rename.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52737#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list