Ticket #25833: 25833.diff
File 25833.diff, 1.8 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/upgrade.php
405 405 if ( $wp_current_db_version < 25824 ) 406 406 upgrade_370(); 407 407 408 if ( $wp_current_db_version < 25825 ) 409 upgrade_372(); 410 408 411 maybe_disable_link_manager(); 409 412 410 413 maybe_disable_automattic_widgets(); … … 1223 1226 } 1224 1227 1225 1228 /** 1229 * Execute changes made in WordPress 3.7.2. 1230 * 1231 * @since 3.7.2 1232 */ 1233 function 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 /** 1226 1240 * Execute network level changes 1227 1241 * 1228 1242 * @since 3.0.0 -
src/wp-includes/update.php
577 577 578 578 if ( ! wp_next_scheduled( 'wp_maybe_auto_update' ) && ! defined( 'WP_INSTALLING' ) ) { 579 579 // 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; 581 582 $now = time(); 582 583 // Find the next instance of 7 a.m. or 7 p.m., but skip it if it is within 3 hours from now. 583 584 while ( ( $now + 3 * HOUR_IN_SECONDS ) > $next ) { -
src/wp-includes/version.php
11 11 * 12 12 * @global int $wp_db_version 13 13 */ 14 $wp_db_version = 2582 4;14 $wp_db_version = 25825; 15 15 16 16 /** 17 17 * Holds the TinyMCE version