Permalink
Browse files

Re: Issue #49 obey user option not to display header text

  • Loading branch information...
1 parent 5b33e0d commit 727b659d63f80c88b115932b7d10df12ff33bb07 @chipbennett committed Oct 19, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 functions/hooks.php
View
@@ -873,10 +873,13 @@ function oenology_hook_site_header() {
$site_header = '';
+ $site_header_name = ( 'blank' != get_header_textcolor() ? get_bloginfo( 'name' ) : ' ' );
+ $site_header_description = ( 'blank' != get_header_textcolor() ? get_bloginfo( 'description' ) : ' ' );
+
// Displays the blog name, as defined on the General Settings page in the administration panel
- $site_header .= '<div class="site-header-text">' . get_bloginfo( 'name' ) . '</div>';
+ $site_header .= '<div class="site-header-text">' . $site_header_name . '</div>';
// Displays the blog description, as defined on the General Settings page in the administration panel
- $site_header .= '<p>' . get_bloginfo( 'description' ) . '</p>';
+ $site_header .= '<p>' . $site_header_description . '</p>';
echo apply_filters( 'oenology_hook_site_header', $site_header );
}

0 comments on commit 727b659

Please sign in to comment.