Merge pull request #479 from psoluch/patch-1

Prevent 'Page %s' from being added to page title on 404 error pages.
This commit is contained in:
Konstantin Obenland 2014-05-04 15:36:42 +02:00
commit b1dba82fa0
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ function _s_wp_title( $title, $sep ) {
}
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 ) {
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
$title .= " $sep " . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) );
}