From 1d4574f9bf2db277b97efa6d41ce851ca95a5f65 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 25 Feb 2009 23:18:42 +0000 Subject: [PATCH] Use get_transient() for update_themes. git-svn-id: http://svn.automattic.com/wordpress/trunk@10649 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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.