From 49a2a5e3dd62135aeb92cd2dd8eabd2142d0f0ac Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 20 Oct 2010 12:12:31 +0000 Subject: [PATCH] Get rid of $taxonomy_query_vars altogether. See #12891 git-svn-id: https://develop.svn.wordpress.org/trunk@15861 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 2a4c3d63ea..7de27f6eea 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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;