Ticket #16002: 16002.diff
File 16002.diff, 740 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 if ( empty($_query) || !array_diff( array_keys($_query), array('preview', 'page', 'paged', 'cpage', 'pagename') ) ) { 1563 1563 $this->is_page = true; 1564 1564 $this->is_home = false; 1565 1565 $qv['page_id'] = get_option('page_on_front');