From 6dfe0a43ac12d2c115133e1a48180847e4d19b41 Mon Sep 17 00:00:00 2001 From: iammattthomas 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: http://svn.automattic.com/wordpress/trunk@14281 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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() ) {