Skip to content

Commit 795319a

Browse files
committed
Clean cached data
1 parent 40bb25c commit 795319a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/compat/wordpress-6.2/default-filters.php

+2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
*/
1919

2020
add_action( 'switch_theme', 'wp_theme_has_theme_json_clean_cache' );
21+
add_action( 'switch_theme', array( 'WP_Theme_JSON_Resolver_Gutenberg', 'clean_cached_data' ) );
2122
add_action( 'start_previewing_theme', 'wp_theme_has_theme_json_clean_cache' );
23+
add_action( 'start_previewing_theme', array( 'WP_Theme_JSON_Resolver_Gutenberg', 'clean_cached_data' ) );
2224
add_action( 'upgrader_process_complete', '_wp_theme_has_theme_json_clean_cache_upon_upgrading_active_theme', 10, 2 );
2325
add_action( 'save_post_wp_global_styles', array( 'WP_Theme_JSON_Resolver_Gutenberg', 'clean_cached_data' ) );
2426
add_action( 'activated_plugin', array( 'WP_Theme_JSON_Resolver_Gutenberg', 'clean_cached_data' ) );

0 commit comments

Comments
 (0)