WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/11/2016 05:43:17 PM (3 years ago)
Author:
ocean90
Message:

Upgrade: Trigger the upgrader_process_complete action for translation updates.

This brings Language_Pack_Upgrader in line with the core, theme, and plugin upgrader.

Props ronalfy.
Fixes #36872.

File:
1 edited

Legend:

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

    r37558 r37687  
    763763             * @since 3.6.0
    764764             * @since 3.7.0 Added to WP_Upgrader::run().
     765             * @since 4.6.0 `$translations` was added as a possible argument to `$hook_extra`.
    765766             *
    766767             * @param WP_Upgrader $this WP_Upgrader instance. In other contexts, $this, might be a
    767              *                          Theme_Upgrader, Plugin_Upgrader or Core_Upgrade instance.
     768             *                          Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.
    768769             * @param array       $hook_extra {
    769770             *     Array of bulk item update data.
    770771             *
    771              *     @type string $action  Type of action. Default 'update'.
    772              *     @type string $type    Type of update process. Accepts 'plugin', 'theme', or 'core'.
    773              *     @type bool   $bulk    Whether the update process is a bulk update. Default true.
    774              *     @type array  $plugins Array of the basename paths of the plugins' main files.
    775              *     @type array  $themes  The theme slugs.
     772             *     @type string $action       Type of action. Default 'update'.
     773             *     @type string $type         Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'.
     774             *     @type bool   $bulk         Whether the update process is a bulk update. Default true.
     775             *     @type array  $plugins      Array of the basename paths of the plugins' main files.
     776             *     @type array  $themes       The theme slugs.
     777             *     @type array  $translations {
     778             *         Array of translations update data.
     779             *
     780             *         @type string $language The locale the translation is for.
     781             *         @type string $type     Type of translation. Accepts 'plugin', 'theme', or 'core'.
     782             *         @type string $slug     Text domain the translation is for. The slug of a theme/plugin or
     783             *                                'default' for core translations.
     784             *         @type string $version  The version of a theme, plugin, or core.
     785             *     }
    776786             * }
    777787             */
Note: See TracChangeset for help on using the changeset viewer.