Changeset 10515 for trunk/wp-admin/includes/update.php
- Timestamp:
- 02/06/2009 06:06:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r10150 r10515 34 34 $dismissed = get_option( 'dismissed_update_core' ); 35 35 if ( !is_array( $dismissed ) ) $dismissed = array(); 36 $from_api = get_ option( 'update_core' );36 $from_api = get_transient( 'update_core' ); 37 37 if ( empty($from_api) ) 38 38 return false; … … 72 72 73 73 function find_core_update( $version, $locale ) { 74 $from_api = get_ option( 'update_core' );74 $from_api = get_transient( 'update_core' ); 75 75 if ( !is_array( $from_api->updates ) ) return false; 76 76 $updates = $from_api->updates; … … 147 147 148 148 function wp_plugin_update_row( $file, $plugin_data ) { 149 $current = get_ option( 'update_plugins' );149 $current = get_transient( 'update_plugins' ); 150 150 if ( !isset( $current->response[ $file ] ) ) 151 151 return false; … … 174 174 175 175 // Is an update available? 176 $current = get_ option( 'update_plugins' );176 $current = get_transient( 'update_plugins' ); 177 177 if ( !isset( $current->response[ $plugin ] ) ) 178 178 return new WP_Error('up_to_date', __('The plugin is at the latest version.')); … … 269 269 270 270 // Force refresh of plugin update information 271 delete_ option('update_plugins');271 delete_transient('update_plugins'); 272 272 273 273 if( empty($filelist) )
Note: See TracChangeset
for help on using the changeset viewer.