Make WordPress Core

Changeset 3896


Ignore:
Timestamp:
06/22/2006 03:39:23 AM (19 years ago)
Author:
ryan
Message:

show_on_front page preview fix from that Andy guy.

File:
1 edited

Legend:

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

    r3886 r3896  
    547547        }
    548548
    549         if ( $this->is_home && empty($this->query) && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) {
     549        if ( $this->is_home && (empty($this->query) || $q['preview'] == 'true') && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) {
    550550            $this->is_page = true;
    551551            $this->is_home = false;
Note: See TracChangeset for help on using the changeset viewer.