From 76343827369d58fd6627d7b1330d2956300ce014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Wed, 9 Aug 2023 15:46:06 +0200 Subject: [PATCH] Use wp_get_global_settings --- src/wp-includes/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 3447c4601608c..f4f45201a5dc4 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -3248,7 +3248,7 @@ function _wp_theme_json_webfonts_handler() { */ $fn_get_webfonts_from_theme_json = static function() { // Get settings from theme.json. - $settings = WP_Theme_JSON_Resolver::get_merged_data()->get_settings(); + $settings = wp_get_global_settings(); // If in the editor, add webfonts defined in variations. if ( is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {