浏览代码

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

BCB: fix custom fonts loading conditional
Ben Dwyer 4 年之前
父节点
当前提交
c486cce38f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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'];
 	$custom_data = $theme_data['defaults']['custom'];
-	if ( array_key_exists( 'fontsToLoadFromGoogle', $custom_data ) ) {
+	if ( ! array_key_exists( 'fontsToLoadFromGoogle', $custom_data ) ) {
 		return '';
 		return '';
 	}
 	}