Changeset 15872
- Timestamp:
- 10/20/2010 04:50:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/update.php
r15591 r15872 335 335 } 336 336 337 /** 338 * Schedule core, theme, and plugin update checks. 339 * 340 * @since 3.1.0 341 */ 342 function wp_schedule_update_checks() { 343 if ( !wp_next_scheduled('wp_version_check') && !defined('WP_INSTALLING') ) 344 wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); 345 346 if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') ) 347 wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); 348 349 if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') ) 350 wp_schedule_event(time(), 'twicedaily', 'wp_update_themes'); 351 } 352 337 353 if ( ! is_main_site() ) 338 354 return; … … 353 369 add_action( 'wp_update_themes', 'wp_update_themes' ); 354 370 355 if ( !wp_next_scheduled('wp_version_check') && !defined('WP_INSTALLING') ) 356 wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); 357 358 if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') ) 359 wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); 360 361 if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') ) 362 wp_schedule_event(time(), 'twicedaily', 'wp_update_themes'); 371 add_action('init', 'wp_schedule_update_checks'); 363 372 364 373 ?>
Note: See TracChangeset
for help on using the changeset viewer.