forked from mirror/_s
fix for a page title error
The same error as https://core.trac.wordpress.org/ticket/16468
This commit is contained in:
parent
69930e3786
commit
54d58d548b
|
@ -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