Skip to content

Commit f654f6f

Browse files
committed
Use plugins_loaded instead of init as hook
1 parent 0dd6a78 commit f654f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compat/wordpress-6.2/get-global-styles-and-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,4 @@ function _gutenberg_clean_theme_json_caches() {
211211
function _gutenberg_add_non_persistent_theme_json_cache_group() {
212212
wp_cache_add_non_persistent_groups( 'theme_json' );
213213
}
214-
add_action( 'init', '_gutenberg_add_non_persistent_theme_json_cache_group' );
214+
add_action( 'plugins_loaded', '_gutenberg_add_non_persistent_theme_json_cache_group' );

0 commit comments

Comments
 (0)