Get rid of $taxonomy_query_vars altogether. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b08f69b50
commit
49a2a5e3dd
@ -132,7 +132,6 @@ class WP {
|
||||
global $wp_rewrite;
|
||||
|
||||
$this->query_vars = array();
|
||||
$taxonomy_query_vars = array();
|
||||
$post_type_query_vars = array();
|
||||
|
||||
if ( is_array($extra_query_vars) )
|
||||
@ -252,10 +251,6 @@ class WP {
|
||||
|
||||
$this->public_query_vars = apply_filters('query_vars', $this->public_query_vars);
|
||||
|
||||
foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t )
|
||||
if ( $t->query_var )
|
||||
$taxonomy_query_vars[$t->query_var] = $taxonomy;
|
||||
|
||||
foreach ( $GLOBALS['wp_post_types'] as $post_type => $t )
|
||||
if ( $t->query_var )
|
||||
$post_type_query_vars[$t->query_var] = $post_type;
|
||||
|
Loading…
Reference in New Issue
Block a user