Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(révision 13396)
+++ wp-includes/query.php	(copie de travail)
@@ -1949,7 +1949,8 @@
 				if ( !is_wp_error($post_ids) && count($post_ids) ) {
 					$whichcat .= " AND $wpdb->posts.ID IN (" . implode(', ', $post_ids) . ") ";
 					$post_type = 'any';
-					$q['post_status'] = 'publish';
+					if ( !isset($q['post_status']) || empty($q['post_status']) )
+						$q['post_status'] = 'publish';
 					$post_status_join = true;
 				} else {
 					$whichcat = " AND 0 ";
