From e84ed54643a73278a47ec9d8d527668d0ee4a623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Smoli=C5=84ski?= Date: Wed, 24 Apr 2019 20:32:42 +0200 Subject: [PATCH 1/2] Change `CoreUpgrader::download_package` signature --- src/WP_CLI/Core/CoreUpgrader.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/WP_CLI/Core/CoreUpgrader.php b/src/WP_CLI/Core/CoreUpgrader.php index ec415ab56..58907a1e6 100644 --- a/src/WP_CLI/Core/CoreUpgrader.php +++ b/src/WP_CLI/Core/CoreUpgrader.php @@ -22,11 +22,12 @@ class CoreUpgrader extends DefaultCoreUpgrader { * * @access public * - * @param string $package The URI of the package. If this is the full path to an - * existing local file, it will be returned untouched. + * @param string $package The URI of the package. If this is the full path to an + * existing local file, it will be returned untouched. + * @param bool $check_signatures Whether to validate file signatures. Default false. * @return string|WP_Error The full path to the downloaded package file, or a WP_Error object. */ - public function download_package( $package ) { + public function download_package( $package, $check_signatures = true ) { /** * Filter whether to return the package. From 02d014a5d07c1279a4776f9919288904c1bbb40a Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 24 Apr 2019 20:54:00 +0200 Subject: [PATCH 2/2] Update src/WP_CLI/Core/CoreUpgrader.php Co-Authored-By: wojsmol --- src/WP_CLI/Core/CoreUpgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WP_CLI/Core/CoreUpgrader.php b/src/WP_CLI/Core/CoreUpgrader.php index 58907a1e6..9784552b5 100644 --- a/src/WP_CLI/Core/CoreUpgrader.php +++ b/src/WP_CLI/Core/CoreUpgrader.php @@ -24,7 +24,7 @@ class CoreUpgrader extends DefaultCoreUpgrader { * * @param string $package The URI of the package. If this is the full path to an * existing local file, it will be returned untouched. - * @param bool $check_signatures Whether to validate file signatures. Default false. + * @param bool $check_signatures Whether to validate file signatures. Default true. * @return string|WP_Error The full path to the downloaded package file, or a WP_Error object. */ public function download_package( $package, $check_signatures = true ) {