forked from mirror/_s
Use get_header_textcolor() for forward compatibility
This commit is contained in:
parent
2150be2d97
commit
036f80fd9a
|
@ -117,10 +117,10 @@ if ( ! function_exists( '_s_admin_header_image' ) ) :
|
||||||
function _s_admin_header_image() { ?>
|
function _s_admin_header_image() { ?>
|
||||||
<div id="headimg">
|
<div id="headimg">
|
||||||
<?php
|
<?php
|
||||||
if ( 'blank' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) || '' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) )
|
if ( 'blank' == get_header_textcolor() || '' == get_header_textcolor() )
|
||||||
$style = ' style="display:none;"';
|
$style = ' style="display:none;"';
|
||||||
else
|
else
|
||||||
$style = ' style="color:#' . get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) . ';"';
|
$style = ' style="color:#' . get_header_textcolor() . ';"';
|
||||||
?>
|
?>
|
||||||
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
||||||
|
|
Reference in New Issue