[wp-trac] [WordPress Trac] #22001: Handling private and protected posts when querying multiple post types
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 26 14:16:18 UTC 2012
#22001: Handling private and protected posts when querying multiple post types
-----------------------------+--------------------------
Reporter: tamlyn | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Query
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------------+--------------------------
When querying multiple post types (e.g. new WP_Query(array('slug'=>$slug,
'post_type'=>'any') the automatic handling of protected and private posts
fails because it looks for capabilities 'edit_any' and 'read_any' which
don't exist.
The attached patch illustrates the problem with a suggested fix. However
it's possible I have misunderstood how this is supposed to work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22001>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list