Browse Source

Merge pull request #3716 from Automattic/fix/custom-fonts-conditional

BCB: fix custom fonts loading conditional
Ben Dwyer 4 năm trước cách đây
mục cha
commit
c486cce38f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      blank-canvas-blocks/functions.php

+ 1 - 1
blank-canvas-blocks/functions.php

@@ -68,7 +68,7 @@ function blank_canvas_blocks_fonts_url() {
 	}
 
 	$custom_data = $theme_data['defaults']['custom'];
-	if ( array_key_exists( 'fontsToLoadFromGoogle', $custom_data ) ) {
+	if ( ! array_key_exists( 'fontsToLoadFromGoogle', $custom_data ) ) {
 		return '';
 	}