Index: /Users/amaury/Desktop/SVN/WPtrunk/wp-includes/query.php
===================================================================
--- /Users/amaury/Desktop/SVN/WPtrunk/wp-includes/query.php	(revision 13998)
+++ /Users/amaury/Desktop/SVN/WPtrunk/wp-includes/query.php	(working copy)
@@ -2038,8 +2038,13 @@
 				$post_ids = get_objects_in_term($term_ids, $taxonomy);
 				if ( !is_wp_error($post_ids) && !empty($post_ids) ) {
 					$whichcat .= " AND $wpdb->posts.ID IN (" . implode(', ', $post_ids) . ") ";
-					$post_type = 'any';
-					$q['post_status'] = 'publish';
+					
+					if ( !isset($post_type) || empty($post_type) )
+					    $post_type = 'any';
+					
+					if ( !isset($q['post_status']) || empty($q['post_status']) )
+					    $q['post_status'] = 'publish';
+					
 					$post_status_join = true;
 				} else {
 					$whichcat = " AND 0 ";
@@ -2048,7 +2053,6 @@
 		}
 
 		// Author/user stuff
-
 		if ( empty($q['author']) || ($q['author'] == '0') ) {
 			$whichauthor='';
 		} else {
