Changeset 56174 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 07/09/2023 07:50:52 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r56117 r56174 773 773 } 774 774 775 // The PHP version is still receiving security fixes, but is lower than 776 // the expected minimum version that will be required by WordPress in the near future. 775 /* 776 * The PHP version is still receiving security fixes, but is lower than 777 * the expected minimum version that will be required by WordPress in the near future. 778 */ 777 779 if ( $response['is_secure'] && $response['is_lower_than_future_minimum'] ) { 778 780 // The `is_secure` array key name doesn't actually imply this is a secure version of PHP. It only means it receives security updates. … … 1558 1560 */ 1559 1561 public function get_test_https_status() { 1560 // Enforce fresh HTTPS detection results. This is normally invoked by using cron, 1561 // but for Site Health it should always rely on the latest results. 1562 /* 1563 * Enforce fresh HTTPS detection results. This is normally invoked by using cron, 1564 * but for Site Health it should always rely on the latest results. 1565 */ 1562 1566 wp_update_https_detection_errors(); 1563 1567 … … 1586 1590 1587 1591 if ( ! wp_is_using_https() ) { 1588 // If the website is not using HTTPS, provide more information 1589 // about whether it is supported and how it can be enabled. 1592 /* 1593 * If the website is not using HTTPS, provide more information 1594 * about whether it is supported and how it can be enabled. 1595 */ 1590 1596 $result['status'] = 'recommended'; 1591 1597 $result['label'] = __( 'Your website does not use HTTPS' ); … … 1841 1847 } 1842 1848 1843 // Run the auto-update tests in a separate class, 1844 // as there are many considerations to be made. 1849 /* 1850 * Run the auto-update tests in a separate class, 1851 * as there are many considerations to be made. 1852 */ 1845 1853 $automatic_updates = new WP_Site_Health_Auto_Updates(); 1846 1854 $tests = $automatic_updates->run_tests(); … … 3379 3387 $headers = array(); 3380 3388 3381 // Include basic auth in loopback requests. Note that this will only pass along basic auth when user is 3382 // initiating the test. If a site requires basic auth, the test will fail when it runs in WP Cron as part of 3383 // wp_site_health_scheduled_check. This logic is copied from WP_Site_Health::can_perform_loopback(). 3389 /* 3390 * Include basic auth in loopback requests. Note that this will only pass along basic auth when user is 3391 * initiating the test. If a site requires basic auth, the test will fail when it runs in WP Cron as part of 3392 * wp_site_health_scheduled_check. This logic is copied from WP_Site_Health::can_perform_loopback(). 3393 */ 3384 3394 if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) { 3385 3395 $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
Note: See TracChangeset
for help on using the changeset viewer.