From 554b519123c16c2dc8a48a9f6bd9a390d5656e1b Mon Sep 17 00:00:00 2001 From: Laurel Fulford Date: Fri, 6 Jul 2018 15:45:34 -0700 Subject: [PATCH] Karuna: Update custom header code, to pass the WordPress.org theme check. --- karuna/inc/custom-header.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/karuna/inc/custom-header.php b/karuna/inc/custom-header.php index 221a7b1e0..563676fec 100644 --- a/karuna/inc/custom-header.php +++ b/karuna/inc/custom-header.php @@ -52,9 +52,9 @@ if ( ! function_exists( 'karuna_header_style' ) ) : function karuna_header_style() { $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: add_theme_support( 'custom-header' ) is default, hide text (returns 'blank') or any hex value. + if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { return; }