[wp-trac] [WordPress Trac] #47577: Streamline detecting and enabling HTTPS

WordPress Trac noreply at wordpress.org
Thu Jun 20 12:34:18 UTC 2019


#47577: Streamline detecting and enabling HTTPS
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion needs-unit-tests has-    |     Focuses:
  patch                                          |
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * keywords:  needs-patch 2nd-opinion needs-unit-tests => 2nd-opinion needs-
     unit-tests has-patch


Comment:

 [attachment:"47577.diff"] makes the following changes:

 * Introduce `wp_is_using_https()`, which detects whether the site uses
 HTTPS based on the WordPress site URL.
 * Introduce `wp_is_https_supported()` which detects whether HTTPS is
 supported by the environment (using a cached request to the HTTPS version
 of the site).
 * Enhance the Site Health test for HTTPS status to use the new function
 and provide accurate recommendation based on the results.
 * If HTTPS is active, filter and replace non-HTTP links to the site in
 content with their HTTPS counterparts.

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


More information about the wp-trac mailing list