Use get_transient() for update_themes.

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

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;