Make WordPress Core

Changeset 35642


Ignore:
Timestamp:
11/16/2015 02:46:43 AM (11 years ago)
Author:
dd32
Message:

Upgrader: Pass the $args['hook_extra'] context to the upgrader_source_selection filter.
Props afragen
Fixes #34696

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r35619 r35642  
    461461                 *
    462462                 * @since 2.8.0
     463                 * @since 4.4.0 The $hook_extra parameter became available.
    463464                 *
    464465                 * @param string      $source        File source location.
    465466                 * @param string      $remote_source Remote file source location.
    466467                 * @param WP_Upgrader $this          WP_Upgrader instance.
     468                 * @param array       $hook_extra    Extra arguments passed to hooked filters.
    467469                 */
    468                 $source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this );
     470                $source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] );
    469471
    470472                if ( is_wp_error( $source ) ) {
Note: See TracChangeset for help on using the changeset viewer.