mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
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:
@@ -413,6 +413,8 @@ function register_theme_directory( $directory ) {
|
||||
$wp_theme_directories[] = $untrailed;
|
||||
}
|
||||
|
||||
wp_clean_themes_cache();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user