Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41226, comment 7


Ignore:
Timestamp:
12/05/2017 05:24:37 PM (7 years ago)
Author:
adpawl
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41226, comment 7

    initial v1  
    77
    88'''posts page (normal)'''
    9 page_id: 9
    10 is_home(): bool(true)
     9page_id: '''9'''
     10is_home(): '''bool(true)'''
    1111is_page(): bool(false)
    1212is_preview(): bool(false)
     
    1414
    1515'''posts page (preview)'''
    16 page_id: 1
     16page_id: '''1'''
    1717is_home(): bool(false)
    18 is_page(): bool(true)
    19 is_preview(): bool(true)
     18is_page(): '''bool(true)'''
     19is_preview(): '''bool(true)'''
    2020is_front_page(): bool(false)
    2121
    2222'''Cause''':
    2323'''class-wp-query.php'''
    24 {{{#!php
    25 <?php
     24{{{
    2625if ( $this->is_home && (empty($this->query) || $q['preview'] == 'true') && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) {
    2726 $this->is_page = true;
     
    3029}
    3130}}}
     31
     32