Ticket #16002: 16002.2.patch
File 16002.2.patch, 772 bytes (added by , 14 years ago) |
---|
-
wp-includes/query.php
1559 1559 // Correct is_* for page_on_front and page_for_posts 1560 1560 if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') ) { 1561 1561 $_query = wp_parse_args($query); 1562 if ( empty($_query) || !array_diff( array_keys($_query), array('preview', 'page', 'paged', 'cpage') ) ) { 1562 $excluded_vars = array_diff( array_keys($_query), array('preview', 'page', 'paged', 'cpage') ); 1563 if ( empty($_query) || !empty($excluded_vars) ) { 1563 1564 $this->is_page = true; 1564 1565 $this->is_home = false; 1565 1566 $qv['page_id'] = get_option('page_on_front');