[wp-trac] [WordPress Trac] #63082: Strip query strings in wp_redirect_admin_locations
WordPress Trac
noreply at wordpress.org
Mon Mar 10 18:25:07 UTC 2025
#63082: Strip query strings in wp_redirect_admin_locations
-------------------------+-----------------------------
Reporter: eclev91 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: trunk
Severity: trivial | Keywords:
Focuses: |
-------------------------+-----------------------------
Downstream we're running into an issue where a plugin (Woo) that adds a
query string to URLs for cache-busting purposes breaks the `admin` and
`login` redirects in `wp_redirect_admin_locations`. See ticket here:
https://wordpress.org/support/topic/geolocation-hashing-breaks-
wp_redirect_admin_locations/#post-18353343.
While a workaround is certainly possible, and maybe Woo should be doing it
differently, would it make sense to strip query strings from the request
URI in this redirect's matching logic?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63082>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list