Changes from branches/3.0/wp-includes/update.php at r15456 to trunk/wp-includes/update.php at r17231
- File:
-
- 1 edited
-
trunk/wp-includes/update.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/update.php
r15456 r17231 45 45 $mysql_version = 'N/A'; 46 46 47 $num_blogs = 1;48 $wp_install = home_url( '/' );49 $multisite_enabled = 0;50 $user_count = count_users( );51 47 if ( is_multisite( ) ) { 48 $user_count = get_user_count( ); 52 49 $num_blogs = get_blog_count( ); 53 50 $wp_install = network_site_url( ); 54 51 $multisite_enabled = 1; 52 } else { 53 $user_count = count_users( ); 54 $multisite_enabled = 0; 55 $num_blogs = 1; 56 $wp_install = home_url( '/' ); 55 57 } 56 58 … … 113 115 * @package WordPress 114 116 * @since 2.3.0 115 * @uses $wp_version Used to noti dy the WordPress version.117 * @uses $wp_version Used to notify the WordPress version. 116 118 * 117 119 * @return mixed Returns null if update is unsupported. Returns false if check is too soon. … … 198 200 * @package WordPress 199 201 * @since 2.7.0 200 * @uses $wp_version Used to noti dy the WordPress version.202 * @uses $wp_version Used to notify the WordPress version. 201 203 * 202 204 * @return mixed Returns null if update is unsupported. Returns false if check is too soon. … … 335 337 } 336 338 339 /** 340 * Schedule core, theme, and plugin update checks. 341 * 342 * @since 3.1.0 343 */ 344 function wp_schedule_update_checks() { 345 if ( !wp_next_scheduled('wp_version_check') && !defined('WP_INSTALLING') ) 346 wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); 347 348 if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') ) 349 wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); 350 351 if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') ) 352 wp_schedule_event(time(), 'twicedaily', 'wp_update_themes'); 353 } 354 355 if ( ! is_main_site() ) 356 return; 357 337 358 add_action( 'admin_init', '_maybe_update_core' ); 338 359 add_action( 'wp_version_check', 'wp_version_check' ); … … 350 371 add_action( 'wp_update_themes', 'wp_update_themes' ); 351 372 352 if ( !wp_next_scheduled('wp_version_check') && !defined('WP_INSTALLING') ) 353 wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); 354 355 if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') ) 356 wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); 357 358 if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') ) 359 wp_schedule_event(time(), 'twicedaily', 'wp_update_themes'); 373 add_action('init', 'wp_schedule_update_checks'); 360 374 361 375 ?>
Note: See TracChangeset
for help on using the changeset viewer.