fix for a page title error

The same error as https://core.trac.wordpress.org/ticket/16468
This commit is contained in:
Piotr Soluch 2014-05-04 15:34:50 +02:00
parent 69930e3786
commit 54d58d548b
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 ) );
}