diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index f031e0a0f7..41aecf1a24 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -719,7 +719,7 @@ class WP_Site_Health { sprintf( /* translators: %s: The minimum recommended PHP version. */ __( 'PHP is the programming language used to build and maintain WordPress. Newer versions of PHP are faster and more secure, so staying up to date will help your site’s overall performance and security. The minimum recommended version of PHP is %s.' ), - $response['recommended_version'] + $response ? $response['recommended_version'] : '' ) ), 'actions' => sprintf( @@ -2334,7 +2334,13 @@ class WP_Site_Health { } if ( ! is_wp_error( $result_fetch ) ) { - $results[] = json_decode( wp_remote_retrieve_body( $result_fetch ) ); + $result = json_decode( wp_remote_retrieve_body( $result_fetch ), true ); + } else { + $result = false; + } + + if ( is_array( $result ) ) { + $results[] = $result; } else { $results[] = array( 'status' => 'recommended', diff --git a/wp-includes/version.php b/wp-includes/version.php index 78848c6315..281ec1f5d3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47627'; +$wp_version = '5.5-alpha-47628'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.