Use get_transient() for update_themes.

git-svn-id: https://develop.svn.wordpress.org/trunk@10648 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-02-25 23:16:34 +00:00
parent c95b3dca57
commit a9af3f7f71

View File

@ -74,7 +74,7 @@ $themes = array_slice( $themes, $start, $per_page );
function theme_update_available( $theme ) {
static $themes_update;
if ( !isset($themes_update) )
$themes_update = get_option('update_themes');
$themes_update = get_transient('update_themes');
if ( is_object($theme) && isset($theme->stylesheet) )
$stylesheet = $theme->stylesheet;