Ticket #17737: 17737.4.patch
File 17737.4.patch, 778 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/class-wp.php
261 261 elseif ( isset( $perma_query_vars[$wpvar] ) ) 262 262 $this->query_vars[$wpvar] = $perma_query_vars[$wpvar]; 263 263 264 // Discard invalid values that are not supposed to be an array 265 if ( isset( $this->query_vars[$wpvar] ) && is_array( $this->query_vars[$wpvar] ) ) { 266 if ( 'post_type' != $wpvar ) { 267 unset( $this->query_vars[$wpvar] ); 268 continue; 269 } 270 } 271 264 272 if ( !empty( $this->query_vars[$wpvar] ) ) { 265 273 if ( ! is_array( $this->query_vars[$wpvar] ) ) { 266 274 $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];