diff --git a/src/Core_Command.php b/src/Core_Command.php index 8387f4de..2410d7e5 100644 --- a/src/Core_Command.php +++ b/src/Core_Command.php @@ -926,7 +926,7 @@ private static function get_wp_details( $abspath = ABSPATH ) { ); } - $version_content = file_get_contents( $versions_path, null, null, 6, 2048 ); + $version_content = file_get_contents( $versions_path, false, null, 6, 2048 ); $vars = [ 'wp_version', 'wp_db_version', 'tinymce_version', 'wp_local_package' ]; $result = []; @@ -988,7 +988,7 @@ private static function find_var( $var_name, $code ) { * @return string|array String message on failure. An array of checksums on success. */ private static function get_core_checksums( $version, $locale, $insecure ) { - $query = http_build_query( compact( 'version', 'locale' ), null, '&' ); + $query = http_build_query( compact( 'version', 'locale' ), '', '&' ); $url = "https://api.wordpress.org/core/checksums/1.0/?{$query}"; $headers = [ 'Accept' => 'application/json' ];