From 5b2186301199f550862231b192368185f228127e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 25 Feb 2009 23:18:42 +0000 Subject: [PATCH] Use get_transient() for update_themes. git-svn-id: https://develop.svn.wordpress.org/trunk@10649 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index eedd91d2c9..1289c76ab3 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -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.