Changeset 12673 for trunk/wp-includes/update.php
- Timestamp:
- 01/08/2010 08:49:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/update.php
r12523 r12673 27 27 $php_version = phpversion(); 28 28 29 $current = get_ transient( 'update_core' );29 $current = get_site_transient( 'update_core' ); 30 30 if ( ! is_object($current) ) { 31 31 $current = new stdClass; … … 38 38 // Update last_checked for current to prevent multiple blocking requests if request hangs 39 39 $current->last_checked = time(); 40 set_ transient( 'update_core', $current );40 set_site_transient( 'update_core', $current ); 41 41 42 42 if ( method_exists( $wpdb, 'db_version' ) ) … … 86 86 $updates->last_checked = time(); 87 87 $updates->version_checked = $wp_version; 88 set_ transient( 'update_core', $updates);88 set_site_transient( 'update_core', $updates); 89 89 } 90 90 … … 114 114 $plugins = get_plugins(); 115 115 $active = get_option( 'active_plugins' ); 116 $current = get_ transient( 'update_plugins' );116 $current = get_site_transient( 'update_plugins' ); 117 117 if ( ! is_object($current) ) 118 118 $current = new stdClass; … … 146 146 // Update last_checked for current to prevent multiple blocking requests if request hangs 147 147 $current->last_checked = time(); 148 set_ transient( 'update_plugins', $current );148 set_site_transient( 'update_plugins', $current ); 149 149 150 150 $to_send = (object)compact('plugins', 'active'); … … 171 171 $new_option->response = array(); 172 172 173 set_ transient( 'update_plugins', $new_option );173 set_site_transient( 'update_plugins', $new_option ); 174 174 } 175 175 … … 197 197 198 198 $installed_themes = get_themes( ); 199 $current_theme = get_ transient( 'update_themes' );199 $current_theme = get_site_transient( 'update_themes' ); 200 200 if ( ! is_object($current_theme) ) 201 201 $current_theme = new stdClass; … … 240 240 // Update last_checked for current to prevent multiple blocking requests if request hangs 241 241 $current_theme->last_checked = time(); 242 set_ transient( 'update_themes', $current_theme );242 set_site_transient( 'update_themes', $current_theme ); 243 243 244 244 $current_theme->template = get_option( 'template' ); … … 264 264 } 265 265 266 set_ transient( 'update_themes', $new_option );266 set_site_transient( 'update_themes', $new_option ); 267 267 } 268 268 … … 270 270 global $wp_version; 271 271 272 $current = get_ transient( 'update_core' );272 $current = get_site_transient( 'update_core' ); 273 273 274 274 if ( isset( $current->last_checked ) && … … 291 291 */ 292 292 function _maybe_update_plugins() { 293 $current = get_ transient( 'update_plugins' );293 $current = get_site_transient( 'update_plugins' ); 294 294 if ( isset( $current->last_checked ) && 43200 > ( time() - $current->last_checked ) ) 295 295 return; … … 307 307 */ 308 308 function _maybe_update_themes( ) { 309 $current = get_ transient( 'update_themes' );309 $current = get_site_transient( 'update_themes' ); 310 310 if( isset( $current->last_checked ) && 43200 > ( time( ) - $current->last_checked ) ) 311 311 return;
Note: See TracChangeset
for help on using the changeset viewer.