[wp-trac] [WordPress Trac] #52737: Allow 301 redirect on _wp_old_slug to be filterable
WordPress Trac
noreply at wordpress.org
Tue Mar 9 06:52:29 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 | Keywords: has-patch needs-testing
Focuses: |
-------------------------+-------------------------------------
While the URL on `old_slug_redirect_url` is filterable the same should be
true for the redirect status. It currently is hardcoded as a 301. Allowing
any status code will allow for 302 or other status to be used.
https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/query.php#L1082
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52737>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list