Ticket #16373: 16373.000.diff
File 16373.000.diff, 920 bytes (added by , 14 years ago) |
---|
-
wp-includes/query.php
1572 1572 // pagename can be set and empty depending on matched rewrite rules. Ignore an empty pagename. 1573 1573 if ( isset($_query['pagename']) && '' == $_query['pagename'] ) 1574 1574 unset($_query['pagename']); 1575 if ( empty($_query) || !array_diff( array_keys($_query), array ('preview', 'page', 'paged', 'cpage') ) ) {1575 if ( empty($_query) || !array_diff( array_keys($_query), array_keys($this->query_vars) ) ) { 1576 1576 $this->is_page = true; 1577 1577 $this->is_home = false; 1578 1578 $qv['page_id'] = get_option('page_on_front'); … … 1719 1719 'taxonomy' => 'category', 1720 1720 'terms' => $q['category__not_in'], 1721 1721 'operator' => 'NOT IN', 1722 'include_children' => false 1722 'include_children' => false 1723 1723 ); 1724 1724 } 1725 1725