Skip to content

Commit

Permalink
Clean theme data when switching themes in the customizer
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 3, 2021
1 parent 4e664da commit 7a20d3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/class-wp-theme-json-resolver-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,3 +531,4 @@ public static function clean_cached_data() {
}

add_action( 'switch_theme', array( 'WP_Theme_JSON_Resolver_Gutenberg', 'clean_cached_data' ) );
add_action( 'setup_theme', array( 'WP_Theme_JSON_Resolver_Gutenberg', 'clean_cached_data' ) );

0 comments on commit 7a20d3a

Please sign in to comment.