Skip to content

Commit

Permalink
Add webfonts to the parent theme
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Feb 9, 2022
1 parent b3c6e16 commit 18a28be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static function get_theme_data( $deprecated = array() ) {
// Get parent theme.json.
$parent_theme_json_data = self::read_json_file( self::get_file_path_from_theme( 'theme.json', true ) );
$parent_theme_json_data = self::translate( $parent_theme_json_data, wp_get_theme()->parent()->get( 'TextDomain' ) );
$parent_theme_json_data = gutenberg_add_registered_webfonts_to_theme_json( $parent_theme_json_data );
$parent_theme = new WP_Theme_JSON_Gutenberg( $parent_theme_json_data );

// Merge the child theme.json into the parent theme.json.
Expand Down

0 comments on commit 18a28be

Please sign in to comment.