WordPress.org

Make WordPress Core

Ticket #45894: class-wp-query.php.patch

File class-wp-query.php.patch, 935 bytes (added by man4toman, 22 months ago)

The patch

  • wp-includes/class-wp-query.php

     
    908908                if ( $this->is_feed && ( !empty($qv['withcomments']) || ( empty($qv['withoutcomments']) && $this->is_singular ) ) )
    909909                        $this->is_comment_feed = true;
    910910
    911                 if ( !( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_robots ) )
     911                if ( !( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_robots || $this->is_paged ) )
    912912                        $this->is_home = true;
    913913
    914914                // Correct is_* for page_on_front and page_for_posts