WordPress.org

Make WordPress Core

Ticket #25833: 25833.diff

File 25833.diff, 1.8 KB (added by pento, 8 years ago)
  • src/wp-admin/includes/upgrade.php

     
    405405        if ( $wp_current_db_version < 25824 )
    406406                upgrade_370();
    407407
     408        if ( $wp_current_db_version < 25825 )
     409                upgrade_372();
     410
    408411        maybe_disable_link_manager();
    409412
    410413        maybe_disable_automattic_widgets();
     
    12231226}
    12241227
    12251228/**
     1229 * Execute changes made in WordPress 3.7.2.
     1230 *
     1231 * @since 3.7.2
     1232 */
     1233function upgrade_372() {
     1234        global $wp_current_db_version;
     1235        if ( $wp_current_db_version < 25825 )
     1236                wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
     1237}
     1238
     1239/**
    12261240 * Execute network level changes
    12271241 *
    12281242 * @since 3.0.0
  • src/wp-includes/update.php

     
    577577
    578578        if ( ! wp_next_scheduled( 'wp_maybe_auto_update' ) && ! defined( 'WP_INSTALLING' ) ) {
    579579                // Schedule auto updates for 7 a.m. and 7 p.m. in the timezone of the site.
    580                 $next = strtotime( 'today 7am' );
     580                // Add a random number of minutes, so we don't have all sites trying to update exactly on the hour
     581                $next = strtotime( 'today 7am' ) + rand( 0, 59 ) * MINUTE_IN_SECONDS;
    581582                $now = time();
    582583                // Find the next instance of 7 a.m. or 7 p.m., but skip it if it is within 3 hours from now.
    583584                while ( ( $now + 3 * HOUR_IN_SECONDS ) > $next ) {
  • src/wp-includes/version.php

     
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 25824;
     14$wp_db_version = 25825;
    1515
    1616/**
    1717 * Holds the TinyMCE version