Make WordPress Core


Ignore:
Timestamp:
03/15/2013 06:16:47 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Ten: use a filter to modify the output of wp_title(). Props obenland, closes #23774.

File:
1 edited

Legend:

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

    r20983 r23719  
    1313<head>
    1414<meta charset="<?php bloginfo( 'charset' ); ?>" />
    15 <title><?php
    16     /*
    17      * Print the <title> tag based on what is being viewed.
    18      */
    19     global $page, $paged;
    20 
    21     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 ) );
    34 
    35     ?></title>
     15<title><?php wp_title( '|', true, 'right' ); ?></title>
    3616<link rel="profile" href="http://gmpg.org/xfn/11" />
    3717<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.