diff --git src/wp-admin/includes/class-wp-site-health.php src/wp-admin/includes/class-wp-site-health.php
index a21045d291..be1d439aee 100644
|
|
class WP_Site_Health { |
2361 | 2361 | // Conditionally include REST rules if the function for it exists. |
2362 | 2362 | if ( function_exists( 'rest_url' ) ) { |
2363 | 2363 | $tests['direct']['rest_availability'] = array( |
2364 | | 'label' => __( 'REST API availability' ), |
2365 | | 'test' => 'rest_availability', |
| 2364 | 'label' => __( 'REST API availability' ), |
| 2365 | 'test' => 'rest_availability', |
| 2366 | 'skip_cron' => true, |
2366 | 2367 | ); |
2367 | 2368 | } |
2368 | 2369 | |
… |
… |
class WP_Site_Health { |
2729 | 2730 | } |
2730 | 2731 | |
2731 | 2732 | foreach ( $tests['direct'] as $test ) { |
| 2733 | if ( ! empty( $test['skip_cron'] ) ) { |
| 2734 | continue; |
| 2735 | } |
2732 | 2736 | |
2733 | 2737 | if ( is_string( $test['test'] ) ) { |
2734 | 2738 | $test_function = sprintf( |