git-svn-id: http://svn.automattic.com/wordpress/trunk@14246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
702e3358ad
commit
78930c4964
|
@ -275,10 +275,10 @@ class WP {
|
|||
|
||||
if ( !empty( $this->query_vars[$wpvar] ) ) {
|
||||
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
|
||||
if ( in_array( $wpvar, $taxonomy_query_vars ) ) {
|
||||
if ( isset( $taxonomy_query_vars[$wpvar] ) ) {
|
||||
$this->query_vars['taxonomy'] = $taxonomy_query_vars[$wpvar];
|
||||
$this->query_vars['term'] = $this->query_vars[$wpvar];
|
||||
} elseif ( in_array( $wpvar, $post_type_query_vars ) ) {
|
||||
} elseif ( isset($post_type_query_vars[$wpvar] ) ) {
|
||||
$this->query_vars['post_type'] = $post_type_query_vars[$wpvar];
|
||||
$this->query_vars['name'] = $this->query_vars[$wpvar];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue