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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-05-19 20:12:37 +00:00
parent 6232d3c395
commit db1d0c4ed5
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( );