diff --git a/wp-admin/includes/class-wp-site-health-auto-updates.php b/wp-admin/includes/class-wp-site-health-auto-updates.php index 8e6ef9ac6a..90046ee6b4 100644 --- a/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/wp-admin/includes/class-wp-site-health-auto-updates.php @@ -106,6 +106,17 @@ class WP_Site_Health_Auto_Updates { $test = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) ); + if ( is_wp_error( $test ) ) { + return array( + 'description' => sprintf( + /* translators: %s: Name of the filter used. */ + __( 'Could not confirm that the %s filter is available.' ), + 'wp_version_check()' + ), + 'severity' => 'warning', + ); + } + $response = wp_remote_retrieve_body( $test ); if ( 'yes' !== $response ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index d8ceb4ca10..cbb7cbfed4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta1-45117'; +$wp_version = '5.2-beta1-45118'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.