From 83f33b07ec02ea6d19b379384af87a1349387018 Mon Sep 17 00:00:00 2001 From: Matt Thomas Date: Wed, 28 Apr 2010 17:11:18 +0000 Subject: [PATCH] In Twenty Ten, remove the pipe separator from the title when there is no blog description. Props noel. git-svn-id: https://develop.svn.wordpress.org/trunk@14281 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/header.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php index 00f81c8f0a..12193a39c7 100644 --- a/wp-content/themes/twentyten/header.php +++ b/wp-content/themes/twentyten/header.php @@ -19,7 +19,10 @@ if ( is_single() ) { single_post_title(); echo ' | '; bloginfo( 'name' ); } elseif ( is_home() || is_front_page() ) { - bloginfo( 'name' ); echo ' | '; bloginfo( 'description' ); twentyten_the_page_number(); + bloginfo( 'name' ); + if( get_bloginfo( 'description' ) ) + echo ' | ' . bloginfo( 'description' ); + twentyten_the_page_number(); } elseif ( is_page() ) { single_post_title( '' ); echo ' | '; bloginfo( 'name' ); } elseif ( is_search() ) {