diff --git a/lib/compat/wordpress-6.2/get-global-styles-and-settings.php b/lib/compat/wordpress-6.2/get-global-styles-and-settings.php index 89d396de08b0e..5e2b0a3d6d6f7 100644 --- a/lib/compat/wordpress-6.2/get-global-styles-and-settings.php +++ b/lib/compat/wordpress-6.2/get-global-styles-and-settings.php @@ -211,4 +211,4 @@ function _gutenberg_clean_theme_json_caches() { function _gutenberg_add_non_persistent_theme_json_cache_group() { wp_cache_add_non_persistent_groups( 'theme_json' ); } -add_action( 'init', '_gutenberg_add_non_persistent_theme_json_cache_group' ); +add_action( 'plugins_loaded', '_gutenberg_add_non_persistent_theme_json_cache_group' );