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:
parent
efa75c5c96
commit
21436ed8b9
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue