Use get_transient() for update_themes.

git-svn-id: http://svn.automattic.com/wordpress/trunk@10649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-02-25 23:18:42 +00:00
parent ef0b5afe24
commit 1d4574f9bf
1 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ function wp_update_theme($theme, $feedback = '') {
add_filter('update_feedback', $feedback);
// Is an update available?
$current = get_option( 'update_themes' );
$current = get_transient( 'update_themes' );
if ( !isset( $current->response[ $theme ] ) )
return new WP_Error('up_to_date', __('The theme is at the latest version.'));
@ -388,7 +388,7 @@ function wp_update_theme($theme, $feedback = '') {
$wp_filesystem->delete($working_dir, true);
// Force refresh of plugin update information
delete_option('update_themes');
delete_transient('update_themes');
/*if( empty($filelist) )
return false; //We couldnt find any files in the working dir, therefor no plugin installed? Failsafe backup.