diff --git a/classes/class-bsf-custom-fonts-render.php b/classes/class-bsf-custom-fonts-render.php index 6f99a39..f0183cd 100644 --- a/classes/class-bsf-custom-fonts-render.php +++ b/classes/class-bsf-custom-fonts-render.php @@ -240,7 +240,7 @@ public function bb_custom_fonts( $bb_fonts ) { if ( ! empty( $fonts ) ) { foreach ( $fonts as $post_id ) { $font_family_name = get_the_title( $post_id ); - // Check if $font_family_name is a non-empty string before adding it to the array + // Check if $font_family_name is a non-empty string before adding it to the array. if ( is_string( $font_family_name ) && ! empty( $font_family_name ) ) { $custom_fonts[ $font_family_name ] = array( 'fallback' => 'Verdana, Arial, sans-serif',