[wp-trac] [WordPress Trac] #48556: Query for multiple post types not considering user permission to retrieve private posts

WordPress Trac noreply at wordpress.org
Sun Nov 10 23:09:06 UTC 2019


#48556: Query for multiple post types not considering user permission to retrieve
private posts
--------------------------+------------------------------
 Reporter:  leogermani    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by leogermani):

 * keywords:   => has-patch


Comment:

 Attached a patch with the change and some tests.

 I made an additional elseif statement so it do not touch all other cases
 and acts only in this very specific case.

 Would love to have some feedback.

 git branch: https://github.com/leogermani/wordpress-develop/tree/48556

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48556#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list