From cf584c357f3d7de5d793dc8f287614830b4afbaa Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 13 Oct 2007 18:53:28 +0000 Subject: [PATCH] Eliminate extra query. git-svn-id: https://develop.svn.wordpress.org/trunk@6245 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 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']; } }