diff --git src/wp-admin/includes/class-wp-site-health.php src/wp-admin/includes/class-wp-site-health.php
index f031e0a0f7..d6ba7d983b 100644
|
|
class WP_Site_Health { |
2333 | 2333 | ); |
2334 | 2334 | } |
2335 | 2335 | |
2336 | | if ( ! is_wp_error( $result_fetch ) ) { |
2337 | | $results[] = json_decode( wp_remote_retrieve_body( $result_fetch ) ); |
| 2336 | $response_body = wp_remote_retrieve_body( $result_fetch ); |
| 2337 | $response_decoded = ! empty( $response_body ) ? json_decode( $response_body, true ) : false; |
| 2338 | |
| 2339 | if ( is_array( $response_decoded ) && isset( $response_decoded['status'] ) ) { |
| 2340 | $results[] = $response_decoded; |
2338 | 2341 | } else { |
2339 | 2342 | $results[] = array( |
2340 | 2343 | 'status' => 'recommended', |