From 5dbbc48c42adc54e844b31a336d8dabf3b044126 Mon Sep 17 00:00:00 2001 From: Luis Felipe Zaguini Date: Mon, 28 Mar 2022 17:57:16 -0300 Subject: [PATCH] Fire gutenberg_register_webfonts_from_theme_json on after_setup_theme --- lib/compat/wordpress-6.0/register-webfonts-from-theme-json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.0/register-webfonts-from-theme-json.php b/lib/compat/wordpress-6.0/register-webfonts-from-theme-json.php index a845b31b078bb..1ac7beb39d944 100644 --- a/lib/compat/wordpress-6.0/register-webfonts-from-theme-json.php +++ b/lib/compat/wordpress-6.0/register-webfonts-from-theme-json.php @@ -147,4 +147,4 @@ function gutenberg_add_registered_webfonts_to_theme_json( $data ) { return $data; } -add_action( 'wp_loaded', 'gutenberg_register_webfonts_from_theme_json' ); +add_action( 'after_setup_theme', 'gutenberg_register_webfonts_from_theme_json' );