[wp-trac] [WordPress Trac] #33821: redirect_canonical does not consider port in $compare_original

WordPress Trac noreply at wordpress.org
Thu Jun 5 13:42:12 UTC 2025


#33821: redirect_canonical does not consider port in $compare_original
-------------------------------------------------+-------------------------
 Reporter:  willshouse                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Canonical                            |     Version:  2.3
 Severity:  normal                               |  Resolution:  wontfix
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  test-info needs-testing                        |
-------------------------------------------------+-------------------------
Changes (by azharderaiya):

 * keywords:  has-patch needs-unit-tests needs-test-info => has-patch needs-
     unit-tests needs-test-info needs-testing
 * status:  new => closed
 * resolution:   => wontfix


Comment:

 I’ve reviewed and tested the issue on the latest WordPress version. The
 problem still persists—redirect_canonical() does not account for non-
 standard ports, leading to redirect loops in certain configurations. I
 attempted the patch provided, but it didn't resolve the issue in my setup.

 This issue continues to affect sites running on non-default ports. It
 would be beneficial to revisit this ticket and consider incorporating a
 fix.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/33821#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list