Make WordPress Core

Changeset 37412


Ignore:
Timestamp:
05/10/2016 12:19:18 PM (8 years ago)
Author:
ocean90
Message:

Upgrader: After [37409] move the hook docs for upgrader_process_complete to WP_Upgrader::run().

Add changelog entry for [23912].

Part 7/8.
See #36618.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r37410 r37412  
    294294        $this->maintenance_mode(false);
    295295
    296         /**
    297          * Fires when the bulk upgrader process is complete.
    298          *
    299          * @since 3.6.0
    300          *
    301          * @param Plugin_Upgrader $this Plugin_Upgrader instance. In other contexts, $this, might
    302          *                              be a Theme_Upgrader or Core_Upgrade instance.
    303          * @param array           $data {
    304          *     Array of bulk item update data.
    305          *
    306          *     @type string $action   Type of action. Default 'update'.
    307          *     @type string $type     Type of update process. Accepts 'plugin', 'theme', or 'core'.
    308          *     @type bool   $bulk     Whether the update process is a bulk update. Default true.
    309          *     @type array  $packages Array of plugin, theme, or core packages to update.
    310          * }
    311          */
     296        /** This action is documented in wp-admin/includes/class-wp-upgrader.php */
    312297        do_action( 'upgrader_process_complete', $this, array(
    313298            'action' => 'update',
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r37411 r37412  
    744744        if ( ! $options['is_multi'] ) {
    745745
    746             /** This action is documented in wp-admin/includes/class-wp-upgrader.php */
     746            /**
     747             * Fires when the upgrader process is complete.
     748             *
     749             * @since 3.6.0
     750             * @since 3.7.0 Added to WP_Upgrader::run().
     751             *
     752             * @param WP_Upgrader $this WP_Upgrader instance. In other contexts, $this, might be a
     753             *                          Theme_Upgrader, Plugin_Upgrader or Core_Upgrade instance.
     754             * @param array       $data {
     755             *     Array of bulk item update data.
     756             *
     757             *     @type string $action   Type of action. Default 'update'.
     758             *     @type string $type     Type of update process. Accepts 'plugin', 'theme', or 'core'.
     759             *     @type bool   $bulk     Whether the update process is a bulk update. Default true.
     760             *     @type array  $packages Array of plugin, theme, or core packages to update.
     761             * }
     762             */
    747763            do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );
    748764            $this->skin->footer();
Note: See TracChangeset for help on using the changeset viewer.