Upgrader: Pass the $args['hook_extra'] context to the upgrader_source_selection filter.

Props afragen
Fixes #34696

Built from https://develop.svn.wordpress.org/trunk@35642


git-svn-id: http://core.svn.wordpress.org/trunk@35606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2015-11-16 02:47:25 +00:00
parent 43bc6dc931
commit be94558c46
2 changed files with 4 additions and 2 deletions

View File

@ -460,12 +460,14 @@ class WP_Upgrader {
* Filter the source file location for the upgrade package.
*
* @since 2.8.0
* @since 4.4.0 The $hook_extra parameter became available.
*
* @param string $source File source location.
* @param string $remote_source Remote file source location.
* @param WP_Upgrader $this WP_Upgrader instance.
* @param array $hook_extra Extra arguments passed to hooked filters.
*/
$source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this );
$source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] );
if ( is_wp_error( $source ) ) {
return $source;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta4-35641';
$wp_version = '4.4-beta4-35642';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.