Skip to content

Commit

Permalink
Use WP_Theme_JSON_Resolver_6_0 instead of latest in WP Core trunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed Apr 21, 2022
1 parent 8295f15 commit 6fb945b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/experimental/class-theme-json-webfonts-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 6fb945b

Please sign in to comment.