Changes between Initial Version and Version 1 of Ticket #41226, comment 7
- Timestamp:
- 12/05/2017 05:24:37 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #41226, comment 7
initial v1 7 7 8 8 '''posts page (normal)''' 9 page_id: 910 is_home(): bool(true)9 page_id: '''9''' 10 is_home(): '''bool(true)''' 11 11 is_page(): bool(false) 12 12 is_preview(): bool(false) … … 14 14 15 15 '''posts page (preview)''' 16 page_id: 116 page_id: '''1''' 17 17 is_home(): bool(false) 18 is_page(): bool(true)19 is_preview(): bool(true)18 is_page(): '''bool(true)''' 19 is_preview(): '''bool(true)''' 20 20 is_front_page(): bool(false) 21 21 22 22 '''Cause''': 23 23 '''class-wp-query.php''' 24 {{{#!php 25 <?php 24 {{{ 26 25 if ( $this->is_home && (empty($this->query) || $q['preview'] == 'true') && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) { 27 26 $this->is_page = true; … … 30 29 } 31 30 }}} 31 32