Make WordPress Core

Changeset 26155


Ignore:
Timestamp:
11/14/2013 05:07:19 AM (13 years ago)
Author:
dd32
Message:

Background Updates: Add a 'automatic_updates_complete' hook that fires after any updates have run. Props pento. Fixes #25841

File:
1 edited

Legend:

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

    r26148 r26155  
    20332033                }
    20342034
     2035                /**
     2036                 * Action triggered after any automatic updates have run.
     2037                 *
     2038                 * This action is triggered after all automatic updates have run,
     2039                 * but doesn't guarantee that any updates were performed, you should
     2040                 * check the $update_results array to determine if any updates ran.
     2041                 *
     2042                 * @since 3.8.0
     2043                 *
     2044                 * @param array $update_results The results of all updates attempted
     2045                 */
     2046                do_action( 'automatic_updates_complete', $this->update_results );
     2047
    20352048                // Clear the lock
    20362049                delete_option( $lock_name );
Note: See TracChangeset for help on using the changeset viewer.