Permalink
Browse files

don't display the extra dash if the blog description is empty

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
1 parent 916a8b6 commit 3e88e4585ae6c3ddaf11bf190329a089497bd048 Philip M. Hofer (Frumph) committed Feb 11, 2011
Showing with 4 additions and 2 deletions.
  1. +1 −0 changelog.txt
  2. +3 −2 header.php
View
@@ -9,6 +9,7 @@ moved some data placement around to try to optimize usage
archive/search display count is now exclusively handled by wp-admin - settings - reading now because of wordpress limitations with paging
removed page restraint removal option, better done with CSS via #page, #page-wide - width: auto; instead
added new option to enable the -foot and -head elements instead of having them always active for those who don't use them
+dont display the extra dash if the bloginfo description is empty
2.9.2.29.1
$is_comic needed to be set in the archive.php before hand, was giving notice
View
@@ -3,8 +3,9 @@
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<title><?php
- bloginfo('name');
- if (is_home () ) {
+ bloginfo('name');
+ $bloginfo_description = get_bloginfo('description');
+ if (is_home () && !empty($bloginfo_description)) {
echo ' - '; bloginfo('description');
} elseif (is_category() ) {
echo ' - '; single_cat_title();

0 comments on commit 3e88e45

Please sign in to comment.