Make WordPress Core

Ticket #34661: 34661.diff

File 34661.diff, 862 bytes (added by afragen, 9 years ago)
  • wp-admin/includes/class-wp-upgrader.php

    diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
    index 18f9ad2..d53caa0 100644
    a b class WP_Upgrader { 
    553553                $this->result = compact( 'source', 'source_files', 'destination', 'destination_name', 'local_destination', 'remote_destination', 'clear_destination' );
    554554
    555555                /**
     556                 * Filter the destination after the installation has finished.
     557                 *
     558                 * @since 4.4.x
     559                 *
     560                 * @param array $result     Installation result data.
     561                 * @param array $hook_extra Extra arguments passed to hooked filters.
     562                 */
     563                $this->result = apply_filters( 'upgrader_post_destination', $this->result, $args['hook_extra'] );
     564
     565                /**
    556566                 * Filter the install response after the installation has finished.
    557567                 *
    558568                 * @since 2.8.0