Make WordPress Core

Ticket #16468: 16468.diff

File 16468.diff, 931 bytes (added by MikeHansenMe, 11 years ago)

Refresh with brackets

  • src/wp-content/themes/twentyten/header.php

     
    2525
    2626        // Add the blog description for the home/front page.
    2727        $site_description = get_bloginfo( 'description', 'display' );
    28         if ( $site_description && ( is_home() || is_front_page() ) )
     28        if ( $site_description && ( is_home() || is_front_page() ) ) {
    2929                echo " | $site_description";
    30 
     30        }
    3131        // Add a page number if necessary:
    32         if ( $paged >= 2 || $page >= 2 )
     32        if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
    3333                echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
    34 
     34        }
    3535        ?></title>
    3636<link rel="profile" href="http://gmpg.org/xfn/11" />
    3737<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />