Make WordPress Core

Changeset 13493


Ignore:
Timestamp:
02/28/2010 09:19:34 AM (15 years ago)
Author:
dd32
Message:

When using Page on front, Do not jump back to Blog listing when per-page query vars are set. Fixes #12047

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r13492 r13493  
    14751475
    14761476        // Correct is_* for page_on_front and page_for_posts
    1477         if ( $this->is_home && ( empty($this->query) || $qv['preview'] == 'true' ) && 'page' == get_option('show_on_front') && get_option('page_on_front') ) {
     1477        if (    $this->is_home &&
     1478                'page' == get_option('show_on_front') &&
     1479                get_option('page_on_front') &&
     1480                (
     1481                    empty($this->query) ||
     1482                    !empty($qv['preview']) ||
     1483                    !empty($qv['cpage'])
     1484                ) ) {
    14781485            $this->is_page = true;
    14791486            $this->is_home = false;
Note: See TracChangeset for help on using the changeset viewer.