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

WordPress Trac noreply at wordpress.org
Wed Dec 23 03:01:17 UTC 2020


#48556: Query for multiple post types not considering user permission to retrieve
private posts
-------------------------------------------------+-------------------------
 Reporter:  leogermani                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.7
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests early       |     Focuses:
  needs-dev-note                                 |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 In [changeset:"49899" 49899]:
 {{{
 #!CommitTicketReference repository="" revision="49899"
 Query: Revert post-type specific capability changes.

 The modified checks of the `read_private_posts` capability could result in
 unexpected SQL queries when calling `WP_Query` with invalid parameters.

 Reverts [49830], [49832] and [49833].
 See #48556.
 }}}

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


More information about the wp-trac mailing list