From 54d58d548b0d53c1a9877d47dfe92d5408a5fce1 Mon Sep 17 00:00:00 2001 From: Piotr Soluch Date: Sun, 4 May 2014 15:34:50 +0200 Subject: [PATCH] fix for a page title error The same error as https://core.trac.wordpress.org/ticket/16468 --- inc/extras.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/extras.php b/inc/extras.php index 281c4633..cb62ea5b 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -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 ) ); }