Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecoder committed May 11, 2022
1 parent 8a0935f commit 24dd5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockbase/inc/customizer/wp-customize-fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ function( $font_family ) {

$body_font_selected_font_variable = $merged_json['styles']['typography']['fontFamily'];
preg_match( '/font-family\|(?P<slug>.+)$/', $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' );
Expand Down

0 comments on commit 24dd5c1

Please sign in to comment.