WordPress.org

Make WordPress Core

Changeset 37550


Ignore:
Timestamp:
05/24/2016 05:51:06 PM (3 years ago)
Author:
DrewAPicture
Message:

Docs: Fix the hook doc for upgrader_process_complete to notate all values that might be present in the hook_extra array in the various update contexts.

h/t Nextendweb.

See #32246.

File:
1 edited

Legend:

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

    r37488 r37550  
    751751             * @param WP_Upgrader $this WP_Upgrader instance. In other contexts, $this, might be a
    752752             *                          Theme_Upgrader, Plugin_Upgrader or Core_Upgrade instance.
    753              * @param array       $data {
     753             * @param array       $hook_extra {
    754754             *     Array of bulk item update data.
    755755             *
    756              *     @type string $action   Type of action. Default 'update'.
    757              *     @type string $type     Type of update process. Accepts 'plugin', 'theme', or 'core'.
    758              *     @type bool   $bulk     Whether the update process is a bulk update. Default true.
    759              *     @type array  $packages Array of plugin, theme, or core packages to update.
     756             *     @type string $action               Type of action. Default 'update'.
     757             *     @type string $type                 Type of update process. Accepts 'plugin', 'theme', or 'core'.
     758             *     @type bool   $bulk                 Whether the update process is a bulk update. Default true.
     759             *     @type string $plugin               The base plugin path from the plugins directory.
     760             *     @type string $theme                The stylesheet or template name of the theme.
     761             *     @type string $language_update_type The language pack update type. Accepts 'plugin', 'theme',
     762             *                                        or 'core'.
     763             *     @type object $language_update      The language pack update offer.
    760764             * }
    761765             */
    762766            do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );
     767
    763768            $this->skin->footer();
    764769        }
Note: See TracChangeset for help on using the changeset viewer.