We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f354ce commit ded5ff5Copy full SHA for ded5ff5
includes/create-theme/theme-fonts.php
@@ -107,9 +107,7 @@ public static function copy_activated_fonts_to_theme() {
107
foreach ( $font_family['fontFace'] as &$font_face ) {
108
// src can be a string or an array
109
// if it is a string, cast it to an array
110
- if ( ! is_array( $font_face['src'] ) ) {
111
- $font_face['src'] = array( $font_face['src'] );
112
- }
+ $font_face['src'] = (array) $font_face['src'];
113
foreach ( $font_face['src'] as $font_src_index => &$font_src ) {
114
$font_filename = basename( $font_src );
115
$font_dir = wp_get_font_dir();
0 commit comments