[wp-trac] [WordPress Trac] #47577: Detect HTTPS support and provide guidance

WordPress Trac noreply at wordpress.org
Sat Oct 17 03:33:14 UTC 2020


#47577: Detect HTTPS support and provide guidance
--------------------------------------+-----------------------------
 Reporter:  flixos90                  |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Security                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  administration
--------------------------------------+-----------------------------
Changes (by flixos90):

 * keywords:  needs-unit-tests has-patch => has-patch has-unit-tests


Comment:

 In the latest commit in the PR https://github.com/WordPress/wordpress-
 develop/pull/568, I've added unit test coverage. I've also added a fix
 where now the `siteurl` option is accessed directly in
 `wp_is_https_supported()`. This is necessary because otherwise (via
 `site_url()`) the URL's scheme will be adjusted based on whether the
 current request uses HTTPS or not, which shouldn't affect the URL set
 here. @westonruter What do you think about this? I would think this may be
 an issue for the PWA plugin similarly?

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


More information about the wp-trac mailing list