Site Health: Correct test result status for the HTTPS test.

The supported status values for Site Health tests are `good`, `recommended`, and `critical`.

Follow-up to [50660].

Props TimothyBlynJacobs.
Fixes #52783.

git-svn-id: https://develop.svn.wordpress.org/trunk@50710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-04-14 13:00:52 +00:00
parent 021b2a3753
commit 83b4b89c5a

View File

@@ -1528,7 +1528,7 @@ class WP_Site_Health {
if ( ! wp_is_using_https() ) {
// If the website is not using HTTPS, provide more information about whether it is supported and how it can
// be enabled.
$result['status'] = 'warning';
$result['status'] = 'recommended';
$result['label'] = __( 'Your website does not use HTTPS' );
if ( wp_is_site_url_using_https() ) {