Make WordPress Core

Opened 5 hours ago

#63082 new enhancement

Strip query strings in wp_redirect_admin_locations

Reported by: eclev91's profile eclev91 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: trunk
Component: Canonical Keywords:
Focuses: Cc:

Description

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?

Change History (0)

Note: See TracTickets for help on using tickets.