WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/17/2013 04:01:06 AM (6 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

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

    r25448 r25825  
    403403        upgrade_350();
    404404
     405    if ( $wp_current_db_version < 25824 )
     406        upgrade_370();
     407
    405408    maybe_disable_link_manager();
    406409
     
    12071210    if ( $wp_current_db_version < 22422 && $term = get_term_by( 'slug', 'post-format-standard', 'post_format' ) )
    12081211        wp_delete_term( $term->term_id, 'post_format' );
     1212}
     1213
     1214/**
     1215 * Execute changes made in WordPress 3.7.
     1216 *
     1217 * @since 3.7.0
     1218 */
     1219function upgrade_370() {
     1220    global $wp_current_db_version;
     1221    if ( $wp_current_db_version < 25824 )
     1222        wp_clear_scheduled_hook( 'wp_auto_updates_maybe_update' );
    12091223}
    12101224
Note: See TracChangeset for help on using the changeset viewer.