forked from mirror/_s
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:
commit
b1dba82fa0
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue