Jeremy Yip пре 3 година
родитељ
комит
04d062602e
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      blockbase/inc/customizer/wp-customize-fonts.php

+ 3 - 4
blockbase/inc/customizer/wp-customize-fonts.php

@@ -4,7 +4,6 @@ require_once( __DIR__ . '/wp-customize-global-styles-setting.php' );
 require_once( __DIR__ . '/wp-customize-utils.php' );
 
 add_action( 'init', function() {
-	// return;
 	// TODO: Ensure this is only run once
 	$font_settings = wp_get_global_settings( array( 'typography', 'fontFamilies' ) );
 
@@ -49,7 +48,7 @@ add_action( 'init', function() {
 			$new_styles,
 			array(
 				'typography' => array(
-					'font-family' => "var:preset|font-family|$body_font_slug"
+					'fontFamily' => "var:preset|font-family|$body_font_slug"
 				)
 			)
 		);
@@ -62,12 +61,12 @@ add_action( 'init', function() {
 				'blocks' => array(
 					'core/post-title' => array(
 						'typography' => array(
-							'font-family' => "var:preset|font-family|$heading_font_slug"
+							'fontFamily' => "var:preset|font-family|$heading_font_slug"
 						)
 					),
 					'core/heading' => array(
 						'typography' => array(
-							'font-family' => "var:preset|font-family|$heading_font_slug"
+							'fontFamily' => "var:preset|font-family|$heading_font_slug"
 						)
 					),
 				)