Use Stylesheet instead of Template to key theme data when doing theme update check. Props josephscott. fixes #9897

git-svn-id: http://svn.automattic.com/wordpress/trunk@11424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-21 18:17:20 +00:00
parent 4f2d0e71de
commit 1a939b81bd
1 changed files with 3 additions and 3 deletions

View File

@ -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');
?>
?>