Skip to content

Commit 2846419

Browse files
committed
Fix undefined variable issue
1 parent 88cbe48 commit 2846419

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

php/commands/src/CLI_Command.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,13 @@ class_exists( '\cli\Colors' ); // This autoloads \cli\Colors - after we move the
398398
* @throws \WP_CLI\ExitException
399399
*/
400400
private function validate_hashes( $file, $sha512_url, $md5_url ) {
401-
$headers = [];
402-
403401
$algos = [
404402
'sha512' => $sha512_url,
405403
'md5' => $md5_url,
406404
];
407405

408406
foreach ( $algos as $algo => $url ) {
409-
$response = Utils\http_request( 'GET', $url, null, $headers, $options );
407+
$response = Utils\http_request( 'GET', $url );
410408
if ( '20' !== substr( $response->status_code, 0, 2 ) ) {
411409
WP_CLI::log( "Couldn't access $algo hash for release (HTTP code {$response->status_code})." );
412410
continue;

0 commit comments

Comments
 (0)