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
This commit is contained in:
Ryan Boren 2009-05-21 18:17:20 +00:00
parent 32fd1ae72b
commit fbafa6f628
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');
?>
?>