[wp-trac] [WordPress Trac] #64040: is_ssl() Breaks on Non-Standard HTTPS Port
WordPress Trac
noreply at wordpress.org
Wed Sep 24 18:05:59 UTC 2025
#64040: is_ssl() Breaks on Non-Standard HTTPS Port
--------------------------+-----------------------------
Reporter: 404e | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.8.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The WordPress is_ssl() function incorrectly fails to detect an SSL
connection when a site uses a non-standard HTTPS port (e.g., 3443 instead
of 443). The issue lies with the specific line of code that checks ( '443'
=== (string) $_SERVER['SERVER_PORT'] ).
This flawed logic causes SSL-dependent functionality to break, including
leading to redirect loops in the /wp-admin/ dashboard. After removing this
specific port check from the function, my site's SSL detection works
correctly and the redirect loop is resolved.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64040>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list