diff --git a/php/WP_CLI/WpOrgApi.php b/php/WP_CLI/WpOrgApi.php index 194bcd3b8e..6384101178 100644 --- a/php/WP_CLI/WpOrgApi.php +++ b/php/WP_CLI/WpOrgApi.php @@ -105,7 +105,7 @@ public function get_core_checksums( $version, $locale = 'en_US' ) { $url = sprintf( '%s?%s', self::CORE_CHECKSUMS_ENDPOINT, - http_build_query( compact( 'version', 'locale' ), null, '&' ) + http_build_query( compact( 'version', 'locale' ), '', '&' ) ); $response = $this->json_get_request( $url ); @@ -132,7 +132,7 @@ public function get_core_version_check( $locale = 'en_US' ) { $url = sprintf( '%s?%s', self::VERSION_CHECK_ENDPOINT, - http_build_query( compact( 'locale' ), null, '&' ) + http_build_query( compact( 'locale' ), '', '&' ) ); $response = $this->json_get_request( $url ); @@ -218,7 +218,7 @@ public function get_plugin_info( $plugin, $locale = 'en_US' ) { $url = sprintf( '%s?%s', self::PLUGIN_INFO_ENDPOINT, - http_build_query( compact( 'action', 'request' ), null, '&' ) + http_build_query( compact( 'action', 'request' ), '', '&' ) ); $response = $this->json_get_request( $url ); @@ -248,7 +248,7 @@ public function get_theme_info( $theme, $locale = 'en_US' ) { $url = sprintf( '%s?%s', self::THEME_INFO_ENDPOINT, - http_build_query( compact( 'action', 'request' ), null, '&' ) + http_build_query( compact( 'action', 'request' ), '', '&' ) ); $response = $this->json_get_request( $url );