Ticket #25143: 25143.patch
File 25143.patch, 1.1 KB (added by , 10 years ago) |
---|
-
src/wp-includes/query.php
853 853 * @var array 854 854 */ 855 855 public $query_vars = array(); 856 public $default_query_vars = array(); 856 857 857 858 /** 858 859 * Taxonomy query, as passed to get_tax_sql() … … 1558 1559 } 1559 1560 1560 1561 $this->query_vars = $this->fill_query_vars($this->query_vars); 1562 $this->default_query_vars = $this->fill_query_vars( array() ); 1563 1561 1564 $qv = &$this->query_vars; 1562 1565 $this->query_vars_changed = true; 1563 1566 … … 1766 1769 $qv['page'] = $qv['paged']; 1767 1770 unset($qv['paged']); 1768 1771 } 1772 } elseif( ! empty( $_query ) ) { 1773 1774 $front = false; 1775 foreach( $_query as $key ) { 1776 if( in_array( $key, $this->default_query_vars ) ) { 1777 continue; 1778 } 1779 $front = true; 1780 } 1781 1782 if( $front ) { 1783 $this->is_page = true; 1784 $this->is_home = false; 1785 $qv['page_id'] = get_option('page_on_front'); 1786 } 1769 1787 } 1788 1770 1789 } 1771 1790 1772 1791 if ( '' != $qv['pagename'] ) {