Make WordPress Core

Opened 4 months ago

#60084 new enhancement

Modify default value for x_redirected_by parameters

Reported by: sebastienserre's profile sebastienserre Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords: 2nd-opinion
Focuses: Cc:

Description

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 WordPressto 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.

Change History (0)

Note: See TracTickets for help on using tickets.