From 7c7af674b4f65c39dfaee8f2b8e90511a5c23966 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: http://svn.automattic.com/wordpress/trunk@15861 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;