Skip to content

Commit

Permalink
Force a theme directory scan after installing and upgrading themes. P…
Browse files Browse the repository at this point in the history
…rops nacin. fixes #20919

git-svn-id: http://core.svn.wordpress.org/trunk@21064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jun 12, 2012
1 parent efa75c5 commit 21436ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-admin/includes/class-wp-upgrader.php
Expand Up @@ -764,6 +764,7 @@ function install($package) {

// Force refresh of theme update information
delete_site_transient('update_themes');
search_theme_directories( true );
foreach ( wp_get_themes() as $theme )
$theme->cache_delete();

Expand Down Expand Up @@ -812,6 +813,7 @@ function upgrade($theme) {

// Force refresh of theme update information
delete_site_transient('update_themes');
search_theme_directories( true );
foreach ( wp_get_themes() as $theme )
$theme->cache_delete();

Expand Down Expand Up @@ -901,6 +903,7 @@ function bulk_upgrade($themes) {

// Force refresh of theme update information
delete_site_transient('update_themes');
search_theme_directories( true );
foreach ( wp_get_themes() as $theme )
$theme->cache_delete();

Expand Down

0 comments on commit 21436ed

Please sign in to comment.