Skip to content

Commit e19b89c

Browse files
authored
Merge pull request #120 from wojsmol/chenge-signature
Change `CoreUpgrader::download_package` signature
2 parents 1dc9699 + 02d014a commit e19b89c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/WP_CLI/Core/CoreUpgrader.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ class CoreUpgrader extends DefaultCoreUpgrader {
2222
*
2323
* @access public
2424
*
25-
* @param string $package The URI of the package. If this is the full path to an
26-
* existing local file, it will be returned untouched.
25+
* @param string $package The URI of the package. If this is the full path to an
26+
* existing local file, it will be returned untouched.
27+
* @param bool $check_signatures Whether to validate file signatures. Default true.
2728
* @return string|WP_Error The full path to the downloaded package file, or a WP_Error object.
2829
*/
29-
public function download_package( $package ) {
30+
public function download_package( $package, $check_signatures = true ) {
3031

3132
/**
3233
* Filter whether to return the package.

0 commit comments

Comments
 (0)