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

WordPress Trac noreply at wordpress.org
Tue Jun 17 08:18:20 UTC 2025


#33821: redirect_canonical does not consider port in $compare_original
-------------------------------------------------+-------------------------
 Reporter:  willshouse                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Canonical                            |     Version:  2.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests changes-  |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------

Comment (by wojtekn):

 @SirLouen, in the test from the previous comment I used the incorrect site
 by mistake.

 When I access https://1c3f-79-117-215-65.ngrok-free.app/wp-admin/ as
 guest, I'm redirected to auth form. After I authenticate, I can access
 https://1c3f-79-117-215-65.ngrok-free.app/wp-admin/ without a redirect
 loop. It works well with and without my patch.

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


More information about the wp-trac mailing list