Skip to content

Commit

Permalink
Use public API
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Aug 23, 2023
1 parent 1a58240 commit 8ec62ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WP_Font_Face_Resolver {
* @return array Returns the font-families, each with their font-face variations.
*/
public static function get_fonts_from_theme_json() {
$settings = WP_Theme_JSON_Resolver_Gutenberg::get_merged_data()->get_settings();
$settings = gutenberg_get_global_settings();

// Bail out early if there are no font settings.
if ( empty( $settings['typography'] ) || empty( $settings['typography']['fontFamilies'] ) ) {
Expand Down

0 comments on commit 8ec62ce

Please sign in to comment.