diff --git a/blockbase/inc/customizer/wp-customize-fonts.php b/blockbase/inc/customizer/wp-customize-fonts.php index 57fd7cc607..e845ddc9c4 100644 --- a/blockbase/inc/customizer/wp-customize-fonts.php +++ b/blockbase/inc/customizer/wp-customize-fonts.php @@ -411,7 +411,7 @@ function( $font_family ) { $body_font_selected_font_variable = $merged_json['styles']['typography']['fontFamily']; preg_match( '/font-family\|(?P.+)$/', $body_font_selected_font_variable, $matches ); - $body_font_selected_font_slug = $matches['slug'] ?? ''; + $body_font_selected_font_slug = $matches['slug'] ?? 'system-font'; $this->add_setting_and_control( $wp_customize, 'body', __( 'Body font', 'blockbase' ), $body_font_default['fontSlug'], $body_font_selected_font_slug, 'sanitize_title' ); $this->add_setting_and_control( $wp_customize, 'heading', __( 'Heading font', 'blockbase' ), $heading_font_default['fontSlug'], $heading_font_selected_font_slug, 'sanitize_title' );