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
This commit is contained in:
Matt Thomas 2010-04-28 17:11:18 +00:00
parent 3be728e34b
commit 83f33b07ec
1 changed files with 4 additions and 1 deletions

View File

@ -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() ) {