Changeset 47149
- Timestamp:
- 02/01/2020 12:37:14 AM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r47122 r47149 5123 5123 } 5124 5124 5125 $site_health = new WP_Site_Health();5125 $site_health = WP_Site_Health::get_instance(); 5126 5126 wp_send_json_success( $site_health->get_test_dotorg_communication() ); 5127 5127 } … … 5143 5143 } 5144 5144 5145 $site_health = new WP_Site_Health();5145 $site_health = WP_Site_Health::get_instance(); 5146 5146 wp_send_json_success( $site_health->get_test_is_in_debug_mode() ); 5147 5147 } … … 5163 5163 } 5164 5164 5165 $site_health = new WP_Site_Health();5165 $site_health = WP_Site_Health::get_instance(); 5166 5166 wp_send_json_success( $site_health->get_test_background_updates() ); 5167 5167 } … … 5184 5184 } 5185 5185 5186 $site_health = new WP_Site_Health();5186 $site_health = WP_Site_Health::get_instance(); 5187 5187 wp_send_json_success( $site_health->get_test_loopback_requests() ); 5188 5188 } -
trunk/src/wp-admin/includes/class-wp-site-health.php
r47122 r47149 57 57 * @return WP_Site_Health|null 58 58 */ 59 public static function initialize() {59 public static function get_instance() { 60 60 if ( null === self::$instance ) { 61 61 self::$instance = new WP_Site_Health(); -
trunk/src/wp-admin/includes/dashboard.php
r47122 r47149 49 49 } 50 50 51 WP_Site_Health:: initialize();51 WP_Site_Health::get_instance(); 52 52 53 53 wp_enqueue_style( 'site-health' ); -
trunk/src/wp-admin/site-health-info.php
r46586 r47149 26 26 } 27 27 28 $health_check_site_status = new WP_Site_Health();28 $health_check_site_status = WP_Site_Health::get_instance(); 29 29 30 30 require_once( ABSPATH . 'wp-admin/admin-header.php' ); -
trunk/src/wp-admin/site-health.php
r46586 r47149 28 28 } 29 29 30 $health_check_site_status = new WP_Site_Health();30 $health_check_site_status = WP_Site_Health::get_instance(); 31 31 32 32 // Start by checking if this is a special request checking for the existence of certain filters. -
trunk/src/wp-settings.php
r47122 r47149 356 356 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); 357 357 } 358 WP_Site_Health:: initialize();358 WP_Site_Health::get_instance(); 359 359 360 360 // Load active plugins.
Note: See TracChangeset
for help on using the changeset viewer.