Introduce display_header_text(). props chipbennett for initial patch. see #18887.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fc02ff4a73
commit
f60b0a2af3
|
@ -918,6 +918,21 @@ function header_textcolor() {
|
||||||
echo get_header_textcolor();
|
echo get_header_textcolor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to display the header text.
|
||||||
|
*
|
||||||
|
* @since 3.4.0
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
function display_header_text() {
|
||||||
|
if ( ! current_theme_supports( 'custom-header', '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;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve header image for custom header.
|
* Retrieve header image for custom header.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue