mirror of
git://develop.git.wordpress.org/
synced 2025-01-31 12:29:09 +01:00
Bacground Updates: Move the 'automatic_updates_complete' hook to only fire when some updates have actually been completed. Props nacin. Fixes #25841
git-svn-id: https://develop.svn.wordpress.org/trunk@26164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3b3bb985fa
commit
53748cebe1
@ -2030,20 +2030,16 @@ class WP_Automatic_Updater {
|
||||
|
||||
if ( ! empty( $this->update_results['core'] ) )
|
||||
$this->after_core_update( $this->update_results['core'][0] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Action triggered after any automatic updates have run.
|
||||
*
|
||||
* This action is triggered after all automatic updates have run,
|
||||
* but doesn't guarantee that any updates were performed, you should
|
||||
* check the $update_results array to determine if any updates ran.
|
||||
*
|
||||
* @since 3.8.0
|
||||
*
|
||||
* @param array $update_results The results of all updates attempted
|
||||
*/
|
||||
do_action( 'automatic_updates_complete', $this->update_results );
|
||||
/**
|
||||
* Action triggered after all automatic updates have run.
|
||||
*
|
||||
* @since 3.8.0
|
||||
*
|
||||
* @param array $update_results The results of all updates attempted
|
||||
*/
|
||||
do_action( 'automatic_updates_complete', $this->update_results );
|
||||
}
|
||||
|
||||
// Clear the lock
|
||||
delete_option( $lock_name );
|
||||
|
Loading…
x
Reference in New Issue
Block a user