Skip to content

Commit

Permalink
Update class-bsf-custom-fonts-render.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yssambare12 authored Mar 26, 2024
1 parent a218dc4 commit 3f871be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-bsf-custom-fonts-render.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3f871be

Please sign in to comment.