Force a theme directory scan after installing and upgrading themes. Props nacin. fixes #20919

git-svn-id: http://core.svn.wordpress.org/trunk@21064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-06-12 15:59:53 +00:00
parent efa75c5c96
commit 21436ed8b9
1 changed files with 3 additions and 0 deletions

View File

@ -764,6 +764,7 @@ class Theme_Upgrader extends WP_Upgrader {
// Force refresh of theme update information
delete_site_transient('update_themes');
search_theme_directories( true );
foreach ( wp_get_themes() as $theme )
$theme->cache_delete();
@ -812,6 +813,7 @@ class Theme_Upgrader extends WP_Upgrader {
// Force refresh of theme update information
delete_site_transient('update_themes');
search_theme_directories( true );
foreach ( wp_get_themes() as $theme )
$theme->cache_delete();
@ -901,6 +903,7 @@ class Theme_Upgrader extends WP_Upgrader {
// Force refresh of theme update information
delete_site_transient('update_themes');
search_theme_directories( true );
foreach ( wp_get_themes() as $theme )
$theme->cache_delete();