Karuna: Update custom header code, to pass the WordPress.org theme check.
This commit is contained in:
parent
8c4d40a6b0
commit
554b519123
1 changed files with 3 additions and 3 deletions
|
@ -52,9 +52,9 @@ if ( ! function_exists( 'karuna_header_style' ) ) :
|
||||||
function karuna_header_style() {
|
function karuna_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
|
// 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.
|
// get_header_textcolor() options: add_theme_support( 'custom-header' ) is default, hide text (returns 'blank') or any hex value.
|
||||||
if ( HEADER_TEXTCOLOR == $header_text_color ) {
|
if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue