Themes: Ensure the theme roots cache is cleared when registering a theme directory.

Props soulseekah, johnbillion

Fixes #43228


git-svn-id: https://develop.svn.wordpress.org/trunk@42788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2018-03-05 22:13:36 +00:00
parent b20dc7aaaf
commit d83f786d3c
2 changed files with 22 additions and 0 deletions

View File

@@ -413,6 +413,8 @@ function register_theme_directory( $directory ) {
$wp_theme_directories[] = $untrailed;
}
wp_clean_themes_cache();
return true;
}