From befa8f0f11eb8cd950071728ea1edd263f29a93e Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 13 Oct 2007 18:53:28 +0000 Subject: [PATCH] Eliminate extra query. git-svn-id: http://svn.automattic.com/wordpress/trunk@6245 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 5f03e5e452..fd7b686953 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -998,14 +998,7 @@ class WP_Query { } } else { $q['tag'] = sanitize_term_field('slug', $q['tag'], 0, 'post_tag', 'db'); - $reqtag = is_term( $q['tag'], 'post_tag' ); - if ( !empty($reqtag) ) - $reqtag = $reqtag['term_id']; - else - $reqtag = 0; - - $q['tag_id'] = $reqtag; - $q['tag__in'][] = $reqtag; + $q['tag_slug__in'][] = $q['tag']; } }