WordPress.org

Make WordPress Core

Changeset 14281


Ignore:
Timestamp:
04/28/10 17:11:18 (4 years ago)
Author:
iammattthomas
Message:

In Twenty Ten, remove the pipe separator from the title when there is no blog description. Props noel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r14002 r14281  
    2020            single_post_title(); echo ' | '; bloginfo( 'name' ); 
    2121        } elseif ( is_home() || is_front_page() ) { 
    22             bloginfo( 'name' ); echo ' | '; bloginfo( 'description' ); twentyten_the_page_number(); 
     22            bloginfo( 'name' );  
     23            if( get_bloginfo( 'description' ) )  
     24                echo ' | ' . bloginfo( 'description' );  
     25            twentyten_the_page_number(); 
    2326        } elseif ( is_page() ) { 
    2427            single_post_title( '' ); echo ' | '; bloginfo( 'name' ); 
Note: See TracChangeset for help on using the changeset viewer.