Changeset 50660 for branches/5.7
- Timestamp:
- 04/06/2021 03:38:56 AM (4 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
-
branches/5.7/src/wp-admin/includes/class-wp-site-health.php
r50399 r50660 1529 1529 // If the website is not using HTTPS, provide more information about whether it is supported and how it can 1530 1530 // be enabled. 1531 $result['status'] = ' critical';1531 $result['status'] = 'warning'; 1532 1532 $result['label'] = __( 'Your website does not use HTTPS' ); 1533 1533 … … 1631 1631 } 1632 1632 } 1633 } elseif ( ! wp_is_https_supported() ) {1634 // If the website is using HTTPS, but HTTPS is actually not supported, inform the user about the potential1635 // problems.1636 $result['status'] = 'critical';1637 $result['label'] = __( 'There are problems with the HTTPS connection of your website' );1638 1639 $https_detection_errors = get_option( 'https_detection_errors' );1640 if ( ! empty( $https_detection_errors['ssl_verification_failed'] ) ) {1641 $result['description'] = sprintf(1642 '<p>%s</p>',1643 sprintf(1644 /* translators: %s: URL to Settings > General > WordPress Address. */1645 __( 'Your <a href="%s">WordPress Address</a> is set up to use HTTPS, but the SSL certificate appears to be invalid.' ),1646 esc_url( admin_url( 'options-general.php' ) . '#siteurl' )1647 )1648 );1649 } else {1650 $result['description'] = sprintf(1651 '<p>%s</p>',1652 sprintf(1653 /* translators: %s: URL to Settings > General > WordPress Address. */1654 __( 'Your <a href="%s">WordPress Address</a> is set up to use HTTPS, but your website appears to be unavailable when using an HTTPS connection.' ),1655 esc_url( admin_url( 'options-general.php' ) . '#siteurl' )1656 )1657 );1658 }1659 $result['description'] .= sprintf(1660 '<p>%s</p>',1661 __( 'Talk to your web host about resolving this HTTPS issue for your website.' )1662 );1663 1633 } 1664 1634
Note: See TracChangeset
for help on using the changeset viewer.