mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
5fdd52d2ce
commit
33886d651b
@ -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 ";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user