Merge pull request #16 from obenland/patch-1

Use get_header_textcolor() for forward compatibility, props obenland.
This commit is contained in:
Lance Willett 2012-08-06 16:21:19 -07:00
commit 7a4aa04261
1 changed files with 2 additions and 2 deletions

View File

@ -165,10 +165,10 @@ if ( ! function_exists( '_s_admin_header_image' ) ) :
function _s_admin_header_image() { ?>
<div id="headimg">
<?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;"';
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>
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>