WordPress.org

Make WordPress Core

Ticket #13751: aioseop.diff

File aioseop.diff, 1.0 KB (added by nacin, 5 years ago)
  • wp-content/themes/twentyten/header.php

     
    1515<title><?php 
    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         */ 
    2119        wp_title( '|', true, 'right' ); 
    2220 
     21        // Add the blog name. 
     22        bloginfo( 'name' ); 
     23 
     24        // Add the blog description for the home/front page. 
     25        $site_description = get_bloginfo( 'description', 'display' ); 
     26        if ( $site_description && ( is_home() || is_front_page() ) ) 
     27                echo " | $site_description"; 
     28 
     29        // Add a page number if necessary: 
     30        if ( $paged >= 2 || $page >= 2 ) 
     31                $title .= ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); 
     32 
    2333        ?></title> 
    2434<link rel="profile" href="http://gmpg.org/xfn/11" /> 
    2535<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />