Background Updates: Spread them over the hour. Props Pento. Fixes #25833 for trunk

Built from https://develop.svn.wordpress.org/trunk@26149


git-svn-id: http://core.svn.wordpress.org/trunk@26060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse
2013-11-14 04:04:10 +00:00
parent 02841470a1
commit a71cd00cdb
3 changed files with 18 additions and 1 deletions

View File

@@ -405,6 +405,9 @@ function upgrade_all() {
if ( $wp_current_db_version < 25824 )
upgrade_370();
if ( $wp_current_db_version < 26148 )
upgrade_372();
maybe_disable_link_manager();
maybe_disable_automattic_widgets();
@@ -1222,6 +1225,18 @@ function upgrade_370() {
wp_clear_scheduled_hook( 'wp_auto_updates_maybe_update' );
}
/**
* Execute changes made in WordPress 3.7.2.
*
* @since 3.7.2
* @since 3.8.0
*/
function upgrade_372() {
global $wp_current_db_version;
if ( $wp_current_db_version < 26148 )
wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
}
/**
* Execute network level changes
*