From d85d717aedbc7690e2a450e40dab8fcebd94b38c Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 30 Oct 2007 16:49:38 +0000 Subject: Merge with WordPress 2.3.1 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1139 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/query.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'wp-includes/query.php') diff --git a/wp-includes/query.php b/wp-includes/query.php index fad901a..61a78f6 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -998,7 +998,14 @@ class WP_Query { } } else { $q['tag'] = sanitize_term_field('slug', $q['tag'], 0, 'post_tag', 'db'); - $q['tag_slug__in'][] = $q['tag']; + $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; } } -- cgit