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:
parent
5ad4ed12b7
commit
ef0b5afe24
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue