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

git-svn-id: https://develop.svn.wordpress.org/trunk@15173 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-06-08 14:08:33 +00:00
parent 33e3846eb6
commit 1006d5b101
1 changed files with 0 additions and 2 deletions

View File

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