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:
parent
4f2d0e71de
commit
1a939b81bd
|
@ -213,10 +213,10 @@ function wp_update_themes( ) {
|
||||||
$themes = array( );
|
$themes = array( );
|
||||||
$themes['current_theme'] = (array) $current_theme;
|
$themes['current_theme'] = (array) $current_theme;
|
||||||
foreach( (array) $installed_themes as $theme_title => $theme ) {
|
foreach( (array) $installed_themes as $theme_title => $theme ) {
|
||||||
$themes[$theme['Template']] = array( );
|
$themes[$theme['Stylesheet']] = array( );
|
||||||
|
|
||||||
foreach( (array) $theme as $key => $value ) {
|
foreach( (array) $theme as $key => $value ) {
|
||||||
$themes[$theme['Template']][$key] = $value;
|
$themes[$theme['Stylesheet']][$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue