[wp-trac] [WordPress Trac] #64040: is_ssl() Breaks on Non-Standard HTTPS Port

WordPress Trac noreply at wordpress.org
Wed Sep 24 22:16:00 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                   |  Resolution:
 Keywords:  close reporter-feedback  |     Focuses:
-------------------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => close reporter-feedback


Comment:

 Hello!

 I think this is why
 [https://developer.wordpress.org/reference/functions/is_ssl/ the function]
 also checks for the `$_SERVER['HTTPS']` is `true` or `'on'`.

 Just make sure that you set this variable and the function will work as
 desired. You can manually set it in your `wp-config.php` if need be. Does
 this work?

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


More information about the wp-trac mailing list