mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-23 20:54:24 +00:00
Remove the old wp_auto_updates_maybe_update cron event. Schedule the new wp_maybe_auto_update event at 7 a.m. and 7 p.m. in the site's timezone.
see #27704. git-svn-id: https://develop.svn.wordpress.org/trunk@25825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -402,6 +402,9 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 22422 )
|
||||
upgrade_350();
|
||||
|
||||
if ( $wp_current_db_version < 25824 )
|
||||
upgrade_370();
|
||||
|
||||
maybe_disable_link_manager();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
@@ -1208,6 +1211,17 @@ function upgrade_350() {
|
||||
wp_delete_term( $term->term_id, 'post_format' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute changes made in WordPress 3.7.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*/
|
||||
function upgrade_370() {
|
||||
global $wp_current_db_version;
|
||||
if ( $wp_current_db_version < 25824 )
|
||||
wp_clear_scheduled_hook( 'wp_auto_updates_maybe_update' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute network level changes
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user