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
This commit is contained in:
iammattthomas 2010-04-28 17:11:18 +00:00
parent 36876023a4
commit 6dfe0a43ac

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