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:
parent
32fd1ae72b
commit
fbafa6f628
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,4 +310,4 @@ if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') )
|
|||||||
if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') )
|
if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') )
|
||||||
wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
|
wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user