Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions php/WP_CLI/WpOrgApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down