diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index 48bd21b6a6..315db5566f 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -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'] = 'critical'; + $result['status'] = 'warning'; $result['label'] = __( 'Your website does not use HTTPS' ); if ( wp_is_site_url_using_https() ) { @@ -1630,36 +1630,6 @@ class WP_Site_Health { ); } } - } elseif ( ! wp_is_https_supported() ) { - // If the website is using HTTPS, but HTTPS is actually not supported, inform the user about the potential - // problems. - $result['status'] = 'critical'; - $result['label'] = __( 'There are problems with the HTTPS connection of your website' ); - - $https_detection_errors = get_option( 'https_detection_errors' ); - if ( ! empty( $https_detection_errors['ssl_verification_failed'] ) ) { - $result['description'] = sprintf( - '

%s

', - sprintf( - /* translators: %s: URL to Settings > General > WordPress Address. */ - __( 'Your WordPress Address is set up to use HTTPS, but the SSL certificate appears to be invalid.' ), - esc_url( admin_url( 'options-general.php' ) . '#siteurl' ) - ) - ); - } else { - $result['description'] = sprintf( - '

%s

', - sprintf( - /* translators: %s: URL to Settings > General > WordPress Address. */ - __( 'Your WordPress Address is set up to use HTTPS, but your website appears to be unavailable when using an HTTPS connection.' ), - esc_url( admin_url( 'options-general.php' ) . '#siteurl' ) - ) - ); - } - $result['description'] .= sprintf( - '

%s

', - __( 'Talk to your web host about resolving this HTTPS issue for your website.' ) - ); } return $result; diff --git a/wp-includes/version.php b/wp-includes/version.php index 6a5862ed36..813dff49d0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50658'; +$wp_version = '5.8-alpha-50659'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.