Force a theme directory scan after installing and upgrading themes. Props nacin. fixes #20919
git-svn-id: https://develop.svn.wordpress.org/trunk@21064 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
46dba7300c
commit
ae5be6de5f
@ -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
Block a user