Prevent 'paged-*' from being added to body classes on 404 error pages.
props psoluch. see #16468. Built from https://develop.svn.wordpress.org/trunk@28249 git-svn-id: http://core.svn.wordpress.org/trunk@28077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9998560152
commit
0b08cd7a25
|
@ -615,7 +615,7 @@ function get_body_class( $class = '' ) {
|
||||||
if ( ! $page || $page < 2 )
|
if ( ! $page || $page < 2 )
|
||||||
$page = $wp_query->get( 'paged' );
|
$page = $wp_query->get( 'paged' );
|
||||||
|
|
||||||
if ( $page && $page > 1 ) {
|
if ( $page && $page > 1 && ! is_404() ) {
|
||||||
$classes[] = 'paged-' . $page;
|
$classes[] = 'paged-' . $page;
|
||||||
|
|
||||||
if ( is_single() )
|
if ( is_single() )
|
||||||
|
|
Loading…
Reference in New Issue