Make WordPress Core


Ignore:
Timestamp:
10/13/2015 06:58:00 PM (9 years ago)
Author:
DrewAPicture
Message:

Upgrader: Introduce a new action hook pre_auto_update, which fires immediately prior to an auto-update for core, themes, plugins, or translations.

Props DavidAnderson, welcher.
Fixes #30441.

File:
1 edited

Legend:

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

    r34912 r35144  
    28552855            return false;
    28562856
     2857        /**
     2858         * Fires immediately prior to an auto-update.
     2859         *
     2860         * @since 4.4.0
     2861         *
     2862         * @param string $type    The type of update being checked: 'core', 'theme', 'plugin', or 'translation'.
     2863         * @param object $item    The update offer.
     2864         * @param string $context The filesystem context (a path) against which filesystem access and status
     2865         *                        should be checked.
     2866         */
     2867        do_action( 'pre_auto_update', $type, $item, $context );
     2868
    28572869        $upgrader_item = $item;
    28582870        switch ( $type ) {
Note: See TracChangeset for help on using the changeset viewer.