WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/23/2020 07:11:20 PM (3 weeks ago)
Author:
flixos90
Message:

Security, Site Health: Detect HTTPS support and encourage switching.

This changeset modifies the Site Health panel for HTTPS to provide more accurate recommendations based on whether the environment is already set up for HTTPS.

  • Introduces wp_is_using_https() to check whether the site is configured to use HTTPS (via its Site Address and WordPress Address).
  • Introduces wp_is_https_supported() to check whether the environment supports HTTPS. This relies on a cron job which periodically checks support using a loopback request.

Props Clorith, flixos90, miinasikk, westonruter.
Fixes #47577.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r49566 r49904  
    172172require ABSPATH . WPINC . '/class-wp-theme.php';
    173173require ABSPATH . WPINC . '/template.php';
     174require ABSPATH . WPINC . '/https-detection.php';
    174175require ABSPATH . WPINC . '/class-wp-user-request.php';
    175176require ABSPATH . WPINC . '/user.php';
Note: See TracChangeset for help on using the changeset viewer.