Ticket #16468: 404.patch
File 404.patch, 3.9 KB (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentyeleven/header.php
35 35 36 36 // Add the blog description for the home/front page. 37 37 $site_description = get_bloginfo( 'description', 'display' ); 38 if ( $site_description && ( is_home() || is_front_page() ) ) 38 if ( $site_description && ( is_home() || is_front_page() ) ) { 39 39 echo " | $site_description"; 40 40 } 41 41 42 // Add a page number if necessary: 42 if ( $paged >= 2 || $page >= 2 )43 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { 43 44 echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ); 45 } 44 46 45 47 ?></title> 46 48 <link rel="profile" href="http://gmpg.org/xfn/11" /> -
src/wp-content/themes/twentyfourteen/functions.php
484 484 } 485 485 486 486 // Add a page number if necessary. 487 if ( $paged >= 2 || $page >= 2) {487 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { 488 488 $title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) ); 489 489 } 490 490 -
src/wp-content/themes/twentyten/header.php
25 25 26 26 // Add the blog description for the home/front page. 27 27 $site_description = get_bloginfo( 'description', 'display' ); 28 if ( $site_description && ( is_home() || is_front_page() ) ) 28 if ( $site_description && ( is_home() || is_front_page() ) ) { 29 29 echo " | $site_description"; 30 } 30 31 31 32 // Add a page number if necessary: 32 if ( $paged >= 2 || $page >= 2 )33 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { 33 34 echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); 34 35 } 36 35 37 ?></title> 36 38 <link rel="profile" href="http://gmpg.org/xfn/11" /> 37 39 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> -
src/wp-content/themes/twentythirteen/functions.php
210 210 211 211 // Add the site description for the home/front page. 212 212 $site_description = get_bloginfo( 'description', 'display' ); 213 if ( $site_description && ( is_home() || is_front_page() ) ) 213 if ( $site_description && ( is_home() || is_front_page() ) ) { 214 214 $title = "$title $sep $site_description"; 215 } 215 216 216 217 // Add a page number if necessary. 217 if ( $paged >= 2 || $page >= 2 )218 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { 218 219 $title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) ); 219 220 } 221 220 222 return $title; 221 223 } 222 224 add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 ); -
src/wp-content/themes/twentytwelve/functions.php
205 205 206 206 // Add the site description for the home/front page. 207 207 $site_description = get_bloginfo( 'description', 'display' ); 208 if ( $site_description && ( is_home() || is_front_page() ) ) 208 if ( $site_description && ( is_home() || is_front_page() ) ) { 209 209 $title = "$title $sep $site_description"; 210 210 } 211 211 212 // Add a page number if necessary. 212 if ( $paged >= 2 || $page >= 2 )213 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { 213 214 $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); 215 } 214 216 215 217 return $title; 216 218 }