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:
Sergey Biryukov 2014-05-04 13:17:15 +00:00
parent 9998560152
commit 0b08cd7a25
1 changed files with 2 additions and 2 deletions

View File

@ -612,10 +612,10 @@ function get_body_class( $class = '' ) {
$page = $wp_query->get( 'page' );
if ( !$page || $page < 2)
if ( ! $page || $page < 2 )
$page = $wp_query->get( 'paged' );
if ( $page && $page > 1 ) {
if ( $page && $page > 1 && ! is_404() ) {
$classes[] = 'paged-' . $page;
if ( is_single() )