[wp-trac] [WordPress Trac] #52737: Allow 301 redirect on _wp_old_slug to be filterable
WordPress Trac
noreply at wordpress.org
Tue Mar 9 08:59:04 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 needs- | Focuses:
refresh |
-------------------------------------------------+-------------------------
Changes (by mukesh27):
* keywords: has-patch needs-testing => has-patch needs-testing needs-
refresh
Comment:
As per [https://developer.wordpress.org/reference/functions/wp_redirect/
wp_redirect] document `$status` use int parameter. So we have to change
the doc block for the filter like below
{{{
/**
* Filters the old slug redirect status.
*
* @since 5.8.0
*
* @param int $status The HTTP response status code to use.
*/
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52737#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list