Changeset 23265 for trunk/wp-includes/update.php
- Timestamp:
- 01/04/2013 10:13:51 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/update.php
r21996 r23265 52 52 $mysql_version = 'N/A'; 53 53 54 if ( is_multisite( 55 $user_count = get_user_count( 56 $num_blogs = get_blog_count( 57 $wp_install = network_site_url( 54 if ( is_multisite() ) { 55 $user_count = get_user_count(); 56 $num_blogs = get_blog_count(); 57 $wp_install = network_site_url(); 58 58 $multisite_enabled = 1; 59 59 } else { 60 $user_count = count_users( 60 $user_count = count_users(); 61 61 $user_count = $user_count['total_users']; 62 62 $multisite_enabled = 0; … … 275 275 } 276 276 277 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( 277 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time() - $last_update->last_checked ); 278 278 279 279 if ( $time_not_changed ) { … … 314 314 315 315 $new_update = new stdClass; 316 $new_update->last_checked = time( 316 $new_update->last_checked = time(); 317 317 $new_update->checked = $checked; 318 318 … … 405 405 * @access private 406 406 */ 407 function _maybe_update_themes( 407 function _maybe_update_themes() { 408 408 $current = get_site_transient( 'update_themes' ); 409 if ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time( 409 if ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked ) ) 410 410 return; 411 411
Note: See TracChangeset
for help on using the changeset viewer.