Просмотр исходного кода

Fix array_key_exists conditional.

Jeff Ong 4 лет назад
Родитель
Сommit
5ffa357602
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'];
-	if ( array_key_exists( 'fontsToLoadFromGoogle', $custom_data ) ) {
+	if ( ! array_key_exists( 'fontsToLoadFromGoogle', $custom_data ) ) {
 		return '';
 	}