From fbafa6f6282cffebbb9d7daf92496ec7e10e4151 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 21 May 2009 18:17:20 +0000 Subject: [PATCH] Use Stylesheet instead of Template to key theme data when doing theme update check. Props josephscott. fixes #9897 git-svn-id: https://develop.svn.wordpress.org/trunk@11424 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index a8e983a070..756565b1d3 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -213,10 +213,10 @@ function wp_update_themes( ) { $themes = array( ); $themes['current_theme'] = (array) $current_theme; foreach( (array) $installed_themes as $theme_title => $theme ) { - $themes[$theme['Template']] = array( ); + $themes[$theme['Stylesheet']] = array( ); foreach( (array) $theme as $key => $value ) { - $themes[$theme['Template']][$key] = $value; + $themes[$theme['Stylesheet']][$key] = $value; } } @@ -310,4 +310,4 @@ if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') ) if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') ) wp_schedule_event(time(), 'twicedaily', 'wp_update_themes'); -?> \ No newline at end of file +?>