Include the current theme in theme update check, props josephscott, fixes #9880

git-svn-id: https://develop.svn.wordpress.org/trunk@11404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-05-19 20:12:37 +00:00
parent 864b51f32b
commit 93cff50b33
1 changed files with 3 additions and 1 deletions

View File

@ -208,8 +208,10 @@ function wp_update_themes( ) {
$current_theme->last_checked = time();
set_transient( 'update_themes', $current_theme );
$current_theme->template = get_option( 'template' );
$themes = array( );
$themes['current_theme'] = $current_theme;
$themes['current_theme'] = (array) $current_theme;
foreach( (array) $installed_themes as $theme_title => $theme ) {
$themes[$theme['Template']] = array( );