mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
Background Updates: Add a 'automatic_updates_complete' hook that fires after any updates have run. Props pento. Fixes #25841
Built from https://develop.svn.wordpress.org/trunk@26155 git-svn-id: http://core.svn.wordpress.org/trunk@26066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2b1c6c8ba4
commit
4fbc450f52
@ -2032,6 +2032,19 @@ class WP_Automatic_Updater {
|
|||||||
$this->after_core_update( $this->update_results['core'][0] );
|
$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 );
|
||||||
|
|
||||||
// Clear the lock
|
// Clear the lock
|
||||||
delete_option( $lock_name );
|
delete_option( $lock_name );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user