mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@49904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -171,6 +171,7 @@ require ABSPATH . WPINC . '/class-wp-date-query.php';
|
||||
require ABSPATH . WPINC . '/theme.php';
|
||||
require ABSPATH . WPINC . '/class-wp-theme.php';
|
||||
require ABSPATH . WPINC . '/template.php';
|
||||
require ABSPATH . WPINC . '/https-detection.php';
|
||||
require ABSPATH . WPINC . '/class-wp-user-request.php';
|
||||
require ABSPATH . WPINC . '/user.php';
|
||||
require ABSPATH . WPINC . '/class-wp-user-query.php';
|
||||
|
||||
Reference in New Issue
Block a user