[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 17:18:53 UTC 2012


#22001: Handling private and protected posts when querying multiple post types
--------------------------+------------------------------
 Reporter:  tamlyn        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by nacin):

 This is a known thing, really — It deliberately fails because it is not
 easy to construct sane SQL that will work individually across each post
 type + post_status pairing, as each post type is pretty much guaranteed to
 have different capabilities.

 So essentially, you won't get back any private or protected posts unless
 you are querying a particular post type.

 All ears on how to make this better.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22001#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list