Skip to content

Commit

Permalink
Font Face: use gutenberg_get_global_settings instead of private API (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored Aug 23, 2023
1 parent b10e33a commit 163112f
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 163112f

Please sign in to comment.