mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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 ) {
|
function theme_update_available( $theme ) {
|
||||||
static $themes_update;
|
static $themes_update;
|
||||||
if ( !isset($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) )
|
if ( is_object($theme) && isset($theme->stylesheet) )
|
||||||
$stylesheet = $theme->stylesheet;
|
$stylesheet = $theme->stylesheet;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user