summaryrefslogtreecommitdiffstats
path: root/wp-includes/fonts/class-wp-font-face-resolver.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wp-includes/fonts/class-wp-font-face-resolver.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/wp-includes/fonts/class-wp-font-face-resolver.php b/wp-includes/fonts/class-wp-font-face-resolver.php
index 125ff6a..12245af 100644
--- a/wp-includes/fonts/class-wp-font-face-resolver.php
+++ b/wp-includes/fonts/class-wp-font-face-resolver.php
@@ -67,12 +67,7 @@ class WP_Font_Face_Resolver {
continue;
}
- // Prepare the fonts array structure for this font-family.
- if ( ! array_key_exists( $font_family_name, $fonts ) ) {
- $fonts[ $font_family_name ] = array();
- }
-
- $fonts[ $font_family_name ] = static::convert_font_face_properties( $definition['fontFace'], $font_family_name );
+ $fonts[] = static::convert_font_face_properties( $definition['fontFace'], $font_family_name );
}
}