Skip to content

Commit

Permalink
Make sure theme families are array before merging
Browse files Browse the repository at this point in the history
Follow up to #55981
  • Loading branch information
Vicente Canales committed Nov 10, 2023
1 parent 787f8ea commit 484946d
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 @@ -214,7 +214,7 @@ private static function get_settings() {

// Merge the variation settings with the global settings.
$settings['typography']['fontFamilies']['theme'] = array_merge(
$settings['typography']['fontFamilies']['theme'],
$settings['typography']['fontFamilies']['theme'] ?? array(),
$variation_font_families
);

Expand Down

0 comments on commit 484946d

Please sign in to comment.