wordpress-develop
wordpress-develop copied to clipboard
Fix redirect comparison to account for port difference (Continuation of #8977)
Continuation of #8977
Fix redirect comparison to account for port difference to ensure redirects from a requested URL that uses port to a canonical URL that doesn't use port work correctly.
Trac ticket: https://core.trac.wordpress.org/ticket/33821
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.