From db1d0c4ed5d598e875424f57126378ec606b2ab9 Mon Sep 17 00:00:00 2001 From: azaozz Date: Tue, 19 May 2009 20:12:37 +0000 Subject: [PATCH] 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 --- wp-includes/update.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index 6396a296b..a8e983a07 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -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( );