Don't force post_status to publish for custom taxonomy queries. fixes #13755

git-svn-id: http://svn.automattic.com/wordpress/trunk@15173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-08 14:08:33 +00:00
parent 5fdd52d2ce
commit 33886d651b

View File

@ -2061,8 +2061,6 @@ class WP_Query {
} elseif ( in_array('attachment', (array)$post_type) ) { } elseif ( in_array('attachment', (array)$post_type) ) {
$post_status_join = true; $post_status_join = true;
} }
if ( empty($q['post_status']) )
$q['post_status'] = 'publish';
} else { } else {
$whichcat = " AND 0 "; $whichcat = " AND 0 ";
} }