Ticket #8590: 8590.2.diff
File 8590.2.diff, 1.4 KB (added by , 16 years ago) |
---|
-
wp-includes/update.php
27 27 $php_version = phpversion(); 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() ); 34 37 … … 283 286 wp_update_themes( ); 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' ); 289 293 add_action( 'load-update.php', 'wp_update_plugins' ); … … 295 299 add_action( 'admin_init', '_maybe_update_themes' ); 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'); 304 310 305 ?> 311 ?> 312 No newline at end of file