Make WordPress Core

Ticket #27754: 27754.5.patch

File 27754.5.patch, 1.3 KB (added by aaroncampbell, 8 years ago)

.4 but from root of develop

  • src/wp-admin/includes/class-wp-upgrader.php

    diff --git src/wp-admin/includes/class-wp-upgrader.php src/wp-admin/includes/class-wp-upgrader.php
    index acab417..19a1b6a 100644
    class WP_Upgrader { 
    539539
    540540                $options = wp_parse_args( $options, $defaults );
    541541
     542                /**
     543                 * Filter the package options before running an update.
     544                 *
     545                 * @since 4.3.0
     546                 *
     547                 * @param array $options {
     548                 *     Options used by the upgrader.
     549                 *
     550                 *     @type string $package                     Package for update.
     551                 *     @type string $destination                 Update location.
     552                 *     @type bool   $clear_destination           Clear the destination resource.
     553                 *     @type bool   $clear_working               Clear the working resource.
     554                 *     @type bool   $abort_if_destination_exists Abort if the Destination directory exists.
     555                 *     @type bool   $is_multi                    Whether the upgrader is running multiple times.
     556                 *     @type array  $hook_extra                  Extra hook arguments.
     557                 * }
     558                 */
     559                $options = apply_filters( 'upgrader_package_options', $options );
     560
    542561                if ( ! $options['is_multi'] ) { // call $this->header separately if running multiple times
    543562                        $this->skin->header();
    544563                }