[wp-trac] [WordPress Trac] #60084: Modify default value for x_redirected_by parameters
WordPress Trac
noreply at wordpress.org
Fri Dec 15 20:06:11 UTC 2023
#60084: Modify default value for x_redirected_by parameters
----------------------------+-----------------------------
Reporter: sebastienserre | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: 2nd-opinion
Focuses: |
----------------------------+-----------------------------
Hello,
The function `wp_redirect()`and `wp_safe_redirect()` are accepting a 3rd
parameter `$x_redirected_by` which is by default `WordPress`.
This 3rd parameter is really useful to debug redirection but only few
plugins are using it.
I only know Polylang, Yoast SEO and Redirection by John Godley which are
using it. All other redirections made by a third party (theme or plugins)
are signed `WordPress` which is misleading.
I think we should change the default value to something more generic like
`Not Signed` and add `WordPress`to the real redirections made by the Core.
I do not really know how many redirections WordPress do but I think it
would really help lots of developers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60084>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list