Changeset 2190
- Timestamp:
- 02/01/2005 08:34:19 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r2187 r2190 57 57 } 58 58 59 // Reparse the query vars. 60 function parse_query_vars() { 61 $this->parse_query(''); 62 } 63 64 // Parse a query string and set query type booleans. 59 65 function parse_query ($query) { 60 $this->init(); 61 parse_str($query, $qv); 62 $this->query = $query; 63 $this->query_vars = $qv; 66 if ( !empty($query) || !isset($this->query) ) { 67 $this->init(); 68 parse_str($query, $qv); 69 $this->query = $query; 70 $this->query_vars = $qv; 71 } 72 64 73 $qv['m'] = (int) $qv['m']; 65 74 $qv['p'] = (int) $qv['p']; … … 185 194 if ( ! ($this->is_archive || $this->is_single || $this->is_page || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin)) { 186 195 $this->is_home = true; 196 } 197 198 if ( !empty($query) ) { 199 do_action('parse_query', array(&$this)); 187 200 } 188 201 }
Note: See TracChangeset
for help on using the changeset viewer.