display_header_text() should only return true if the theme mod value is not 'blank'. An empty string is valid -- there is no requirement for it to be truthy. see #18887. see #20600.
git-svn-id: https://develop.svn.wordpress.org/trunk@20772 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7bb44e9f43
commit
bd4441edc6
|
@ -850,7 +850,7 @@ function display_header_text() {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
|
$text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
|
||||||
return $text_color && 'blank' != $text_color;
|
return 'blank' != $text_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue