Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3e88e4585ae6c3ddaf11bf190329a089497bd048 1 parent 916a8b6
Philip M. Hofer (Frumph) authored
Showing with 4 additions and 2 deletions.
  1. +1 −0  changelog.txt
  2. +3 −2 header.php
1  changelog.txt
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
5 header.php
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();
Please sign in to comment.
Something went wrong with that request. Please try again.