id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 33821,redirect_canonical does not consider port in $compare_original,willshouse,,"In the `wp-includes/canonical.php` file the `$requested_url` is built starting at line 64. It combines `is_ssl()` for protocol, `$_SERVER['HTTP_HOST']`, and `$_SERVER['REQUEST_URI']` - but it does not consider `$_SERVER['SERVER_PORT']` This causes a redirect loop for us because we run HTTPS on port 8443. I suggest checking to see if a port other than 80 or 443 is being used and adding that as part of the comparison - suggested patch attached.",defect (bug),new,normal,Future Release,Canonical,2.3,normal,,has-patch needs-unit-tests needs-testing,,