浏览代码

Merge pull request #2117 from Automattic/fix/canard-custom-header

Canard: Remove reference to HEADER_TEXT
Kjell Reigstad 5 年之前
父节点
当前提交
d24d9f9e3a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      canard/inc/custom-header.php

+ 3 - 3
canard/inc/custom-header.php

@@ -33,9 +33,9 @@ if ( ! function_exists( 'canard_header_style' ) ) :
 function canard_header_style() {
 function canard_header_style() {
 	$header_text_color = get_header_textcolor();
 	$header_text_color = get_header_textcolor();
 
 
-	// If no custom options for text are set, let's bail
-	// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value
-	if ( HEADER_TEXTCOLOR == $header_text_color ) {
+	// If no custom options for text are set, let's bail.
+	// get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ).
+	if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) {
 		return;
 		return;
 	}
 	}