Make WordPress Core

Ticket #37251: 37251.diff

File 37251.diff, 684 bytes (added by Presskopp, 9 years ago)
  • query.php

     
    17851785                        $this->is_home = true;
    17861786
    17871787                // Correct is_* for page_on_front and page_for_posts
    1788                 if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') ) {
     1788                if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') && !$this->is_paged ) {
    17891789                        $_query = wp_parse_args($this->query);
    17901790                        // pagename can be set and empty depending on matched rewrite rules. Ignore an empty pagename.
    17911791                        if ( isset($_query['pagename']) && '' == $_query['pagename'] )