Changeset 11209 for trunk/wp-includes/update.php
- Timestamp:
- 05/05/2009 09:51:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/update.php
r11204 r11209 28 28 29 29 $current = get_transient( 'update_core' ); 30 if ( ! is_object($current) ) 30 if ( ! is_object($current) ) { 31 31 $current = new stdClass; 32 $current->updates = array(); 33 $current->version_checked = $wp_version; 34 } 32 35 33 36 $locale = apply_filters( 'core_version_check_locale', get_locale() ); … … 284 287 } 285 288 286 add_action( 'init', '_maybe_update_core' ); 289 add_action( 'admin_init', '_maybe_update_core' ); 290 add_action( 'wp_version_check', 'wp_version_check' ); 287 291 288 292 add_action( 'load-plugins.php', 'wp_update_plugins' ); … … 296 300 add_action( 'wp_update_themes', 'wp_update_themes' ); 297 301 302 if ( !wp_next_scheduled('wp_version_check') && !defined('WP_INSTALLING') ) 303 wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); 304 298 305 if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') ) 299 306 wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); 300 307 301 302 308 if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') ) 303 309 wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
Note: See TracChangeset
for help on using the changeset viewer.