Changeset 10583
- Timestamp:
- 02/17/2009 12:13:25 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update-core.php
r10346 r10583 204 204 205 205 if ( 'upgrade-core' == $action ) { 206 wp_version_check(); 206 207 $title = __('Upgrade WordPress'); 207 208 $parent_file = 'tools.php'; -
trunk/wp-includes/update.php
r10515 r10583 32 32 33 33 $locale = get_locale(); 34 if (35 isset( $current->last_checked ) &&36 43200 > ( time() - $current->last_checked ) &&37 $current->version_checked == $wp_version38 )39 return false;40 34 41 35 // Update last_checked for current to prevent multiple blocking requests if request hangs … … 87 81 set_transient( 'update_core', $updates); 88 82 } 89 add_action( 'init', 'wp_version_check' );90 83 91 84 /** … … 244 237 } 245 238 239 function _maybe_update_core() { 240 global $wp_version; 241 242 $current = get_transient( 'update_core' ); 243 244 if ( isset( $current->last_checked ) && 245 43200 > ( time() - $current->last_checked ) && 246 $current->version_checked == $wp_version ) 247 return; 248 249 wp_version_check(); 250 } 246 251 /** 247 252 * Check the last time plugins were run before checking plugin versions. … … 278 283 } 279 284 285 add_action( 'init', '_maybe_update_core' ); 286 280 287 add_action( 'load-plugins.php', 'wp_update_plugins' ); 281 288 add_action( 'load-update.php', 'wp_update_plugins' );
Note: See TracChangeset
for help on using the changeset viewer.