From 93cff50b33c3156980a093deec941e50fde0e1a7 Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@11404 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 6396a296bc..a8e983a070 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( );