Skip to content

Commit

Permalink
Use gutenberg_get_global_styles instead of wp_get_global_styles
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed May 10, 2023
1 parent e8f94f7 commit a523235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/fonts-api/class-wp-fonts-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class WP_Fonts_Resolver {
* @return array User selected font-families when exists, else empty array.
*/
public static function enqueue_user_selected_fonts() {
$global_styles = wp_get_global_styles();
$global_styles = gutenberg_get_global_styles();
$user_selected_fonts = static::get_user_selected_fonts( $global_styles );
if ( empty( $user_selected_fonts ) ) {
return array();
Expand Down

0 comments on commit a523235

Please sign in to comment.