Przeglądaj źródła

Revert "Fix error"

This reverts commit 24dd5c15bcfeca8a246461a833e8306bc32b6b79.
Grant Kinney 3 lat temu
rodzic
commit
9617c6ac88
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      blockbase/inc/customizer/wp-customize-fonts.php

+ 1 - 1
blockbase/inc/customizer/wp-customize-fonts.php

@@ -411,7 +411,7 @@ class GlobalStylesFontsCustomizer {
 
 		$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'] ?? 'system-font';
+		$body_font_selected_font_slug = $matches['slug'] ?? '';
 
 		$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' );