WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15195 r15391  
    1616    /*
    1717     * Print the <title> tag based on what is being viewed.
    18      * We filter the output of wp_title() a bit -- see
    19      * twentyten_filter_wp_title() in functions.php.
    2018     */
     19    global $page, $paged;
     20
    2121    wp_title( '|', true, 'right' );
     22
     23    // Add the blog name.
     24    bloginfo( 'name' );
     25
     26    // Add the blog description for the home/front page.
     27    $site_description = get_bloginfo( 'description', 'display' );
     28    if ( $site_description && ( is_home() || is_front_page() ) )
     29        echo " | $site_description";
     30
     31    // Add a page number if necessary:
     32    if ( $paged >= 2 || $page >= 2 )
     33        echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
    2234
    2335    ?></title>
Note: See TracChangeset for help on using the changeset viewer.