mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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:
parent
33e3846eb6
commit
1006d5b101
@ -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 ";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user