From 6fb945b84dacab47ddf4fb873640c0272cb46fb3 Mon Sep 17 00:00:00 2001 From: hellofromtonya Date: Thu, 21 Apr 2022 11:26:59 -0500 Subject: [PATCH] Use WP_Theme_JSON_Resolver_6_0 instead of latest in WP Core trunk. --- lib/experimental/class-theme-json-webfonts-handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/experimental/class-theme-json-webfonts-handler.php b/lib/experimental/class-theme-json-webfonts-handler.php index b8ac0ec20a8d7..28f4ba32e0d1f 100644 --- a/lib/experimental/class-theme-json-webfonts-handler.php +++ b/lib/experimental/class-theme-json-webfonts-handler.php @@ -40,11 +40,11 @@ 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_Theme_JSON_Resolver_6_0::get_merged_data()->get_settings(); // If in the editor, add webfonts defined in variations. if ( is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) { - $variations = WP_Theme_JSON_Resolver::get_style_variations(); + $variations = WP_Theme_JSON_Resolver_6_0::get_style_variations(); foreach ( $variations as $variation ) { // Skip if fontFamilies are not defined in the variation. if (