[wp-trac] [WordPress Trac] #64154: Add $x_redirect_by in all places used wp_redirect() and wp_safe_redirect() - in the core, themes and plugins
WordPress Trac
noreply at wordpress.org
Mon Oct 27 14:04:56 UTC 2025
#64154: Add $x_redirect_by in all places used wp_redirect() and wp_safe_redirect()
- in the core, themes and plugins
----------------------------+-----------------------------
Reporter: valentynilinov | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
To better debug any redirects, please explicitly add the $x_redirect_by
parameter in all places where the wp_redirect() and wp_safe_redirect()
functions are used.
And also add a recommendation for theme and plugin developers to
explicitly specify this parameter.
I think this will be useful for all developers in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64154>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list