Include the current theme in theme update check, props josephscott, fixes #9880
git-svn-id: http://svn.automattic.com/wordpress/trunk@11404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6232d3c395
commit
db1d0c4ed5
|
@ -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