From bd4441edc6097a2aae13f8f68129a245353e6611 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 11 May 2012 19:55:07 +0000 Subject: [PATCH] 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 --- wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index d9ac780f97..88e9a181c1 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -850,7 +850,7 @@ function display_header_text() { return false; $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; } /**