mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user