Include the current theme in theme update check, props josephscott, fixes #9880
git-svn-id: https://develop.svn.wordpress.org/trunk@11404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
864b51f32b
commit
93cff50b33
|
@ -208,8 +208,10 @@ function wp_update_themes( ) {
|
||||||
$current_theme->last_checked = time();
|
$current_theme->last_checked = time();
|
||||||
set_transient( 'update_themes', $current_theme );
|
set_transient( 'update_themes', $current_theme );
|
||||||
|
|
||||||
|
$current_theme->template = get_option( 'template' );
|
||||||
|
|
||||||
$themes = array( );
|
$themes = array( );
|
||||||
$themes['current_theme'] = $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['Template']] = array( );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue