Changeset 14445
- Timestamp:
- 05/04/2010 06:08:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r14419 r14445 1475 1475 1476 1476 // Correct is_* for page_on_front and page_for_posts 1477 if ( $this->is_home &&1478 'page' == get_option('show_on_front') && get_option('page_on_front') &&1479 ( empty($query) || !array_diff( array_keys($this->query), array('preview', 'page', 'paged', 'cpage') ) )1480 ) {1481 $this->is_page = true;1482 $this->is_home = false;1483 $qv['page_id'] = get_option('page_on_front');1484 // Correct <!--nextpage--> for page_on_front1485 if ( !empty($qv['paged']) ) {1486 $qv['page'] = $qv['paged'];1487 unset($qv['paged']);1477 if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') ) { 1478 $_query = wp_parse_args($query); 1479 if ( empty($_query) || !array_diff( array_keys($_query), array('preview', 'page', 'paged', 'cpage') ) ) { 1480 $this->is_page = true; 1481 $this->is_home = false; 1482 $qv['page_id'] = get_option('page_on_front'); 1483 // Correct <!--nextpage--> for page_on_front 1484 if ( !empty($qv['paged']) ) { 1485 $qv['page'] = $qv['paged']; 1486 unset($qv['paged']); 1487 } 1488 1488 } 1489 1489 }
Note: See TracChangeset
for help on using the changeset viewer.