From f654f6f99da1262a11f4b61586f93faddb1c23b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Tue, 29 Nov 2022 13:14:41 +0100 Subject: [PATCH] Use plugins_loaded instead of init as hook --- lib/compat/wordpress-6.2/get-global-styles-and-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 89d396de08b0e4..5e2b0a3d6d6f75 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' );