From 65e6d5fb10085826f753ed1d78b3309b1355afbd Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 2 Dec 2009 18:00:32 +0000 Subject: [PATCH] Fix is_tax(). Props scribu. fixes #10721 git-svn-id: https://develop.svn.wordpress.org/trunk@12316 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index c80a179762..a5d53ca120 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -254,14 +254,7 @@ function is_tax( $slug = '' ) { if ( empty($slug) ) return true; - $term = $wp_query->get_queried_object(); - - $slug = (array) $slug; - - if ( in_array( $term->slug, $slug ) ) - return true; - - return false; + return in_array( get_query_var('taxonomy'), (array) $slug ); } /**