diff --git a/src/wp-settings.php b/src/wp-settings.php
index cf4fffc6e7..cb975532f5 100644
a
|
b
|
if ( ! is_multisite() ) { |
352 | 352 | } |
353 | 353 | |
354 | 354 | // Create an instance of WP_Site_Health so that Cron events may fire. |
355 | | if ( ! class_exists( 'WP_Site_Health' ) ) { |
356 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 355 | if ( 'DOING_AJAX' && isset( $_REQUEST['action'] ) && 'health-check-site-status-result' === $_REQUEST['action'] ) { |
| 356 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
| 357 | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 358 | } |
| 359 | WP_Site_Health::initialize(); |
357 | 360 | } |
358 | | WP_Site_Health::initialize(); |
359 | 361 | |
360 | 362 | // Load active plugins. |
361 | 363 | foreach ( wp_get_active_and_valid_plugins() as $plugin ) { |