Changeset 15770
- Timestamp:
- 10/10/2010 08:02:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r15766 r15770 261 261 $post_type_query_vars[$t->query_var] = $post_type; 262 262 263 for ( $i = 0; $i < count($this->public_query_vars); $i += 1 ) { 264 $wpvar = $this->public_query_vars[$i]; 265 if ( isset($this->extra_query_vars[$wpvar]) ) 263 foreach ( $this->public_query_vars as $wpvar ) { 264 if ( isset( $this->extra_query_vars[$wpvar] ) ) 266 265 $this->query_vars[$wpvar] = $this->extra_query_vars[$wpvar]; 267 elseif ( isset( $GLOBALS[$wpvar]) )266 elseif ( isset( $GLOBALS[$wpvar] ) ) 268 267 $this->query_vars[$wpvar] = $GLOBALS[$wpvar]; 269 elseif ( !empty($_POST[$wpvar]) )268 elseif ( isset( $_POST[$wpvar] ) ) 270 269 $this->query_vars[$wpvar] = $_POST[$wpvar]; 271 elseif ( !empty($_GET[$wpvar]) )270 elseif ( isset( $_GET[$wpvar] ) ) 272 271 $this->query_vars[$wpvar] = $_GET[$wpvar]; 273 elseif ( !empty($perma_query_vars[$wpvar]) )272 elseif ( isset( $perma_query_vars[$wpvar] ) ) 274 273 $this->query_vars[$wpvar] = $perma_query_vars[$wpvar]; 275 274
Note: See TracChangeset
for help on using the changeset viewer.