WordPress.org

Make WordPress Core

Changeset 28249


Ignore:
Timestamp:
05/04/2014 01:16:13 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Prevent 'paged-*' from being added to body classes on 404 error pages.

props psoluch.
see #16468.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r27908 r28249  
    613613    $page = $wp_query->get( 'page' );
    614614
    615     if ( !$page || $page < 2)
     615    if ( ! $page || $page < 2 )
    616616        $page = $wp_query->get( 'paged' );
    617617
    618     if ( $page && $page > 1 ) {
     618    if ( $page && $page > 1 && ! is_404() ) {
    619619        $classes[] = 'paged-' . $page;
    620620
Note: See TracChangeset for help on using the changeset viewer.