diff --git a/includes/create-theme/theme-fonts.php b/includes/create-theme/theme-fonts.php index f995c230..09c59eb6 100644 --- a/includes/create-theme/theme-fonts.php +++ b/includes/create-theme/theme-fonts.php @@ -107,9 +107,7 @@ public static function copy_activated_fonts_to_theme() { foreach ( $font_family['fontFace'] as &$font_face ) { // src can be a string or an array // if it is a string, cast it to an array - if ( ! is_array( $font_face['src'] ) ) { - $font_face['src'] = array( $font_face['src'] ); - } + $font_face['src'] = (array) $font_face['src']; foreach ( $font_face['src'] as $font_src_index => &$font_src ) { $font_filename = basename( $font_src ); $font_dir = wp_get_font_dir();