Skip to content

Commit db88c14

Browse files
authored
Merge pull request #166 from wojsmol/chenge-signature-wp55
2 parents a2eb072 + ed44358 commit db88c14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/WP_CLI/Core/CoreUpgrader.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ class CoreUpgrader extends DefaultCoreUpgrader {
2525
* @param string $package The URI of the package. If this is the full path to an
2626
* existing local file, it will be returned untouched.
2727
* @param bool $check_signatures Whether to validate file signatures. Default true.
28+
* @param array $hook_extra Extra arguments to pass to the filter hooks. Default empty array.
2829
* @return string|WP_Error The full path to the downloaded package file, or a WP_Error object.
2930
*/
30-
public function download_package( $package, $check_signatures = true ) {
31+
public function download_package( $package, $check_signatures = true, $hook_extra = [] ) {
3132

3233
/**
3334
* Filter whether to return the package.
@@ -43,7 +44,8 @@ public function download_package( $package, $check_signatures = true ) {
4344
'upgrader_pre_download',
4445
false,
4546
$package,
46-
$this
47+
$this,
48+
$hook_extra
4749
);
4850
if ( false !== $reply ) {
4951
return $reply;

0 commit comments

Comments
 (0)