Ticket #46616: 46616.patch
| File 46616.patch, 1.7 KB (added by , 7 years ago) |
|---|
-
src/wp-admin/includes/class-wp-site-health.php
28 28 public function __construct() { 29 29 $this->prepare_sql_data(); 30 30 31 add_action( 'wp_loaded', array( $this, 'check_wp_version_check_exists' ) );32 33 31 add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) ); 34 32 35 33 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); -
src/wp-admin/site-health.php
27 27 28 28 $health_check_site_status = new WP_Site_Health(); 29 29 30 // Start by checking if this is a special request checking for the existence of certain filters. 31 $health_check_site_status->check_wp_version_check_exists(); 32 30 33 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 31 34 ?> 32 35 -
src/wp-admin/includes/class-wp-site-health-auto-updates.php
101 101 array( 102 102 'health-check-test-wp_version_check' => true, 103 103 ), 104 admin_url( )104 admin_url( 'site-health.php' ) 105 105 ); 106 106 107 107 $test = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) );