[wp-trac] [WordPress Trac] #13509: Searching doesn't return Private results to logged in users with read_private_ permissions

WordPress Trac noreply at wordpress.org
Thu Dec 17 16:15:55 UTC 2020


#13509: Searching doesn't return Private results to logged in users with
read_private_ permissions
-------------------------------------+---------------------------
 Reporter:  inbytesinc               |       Owner:  boonebgorges
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Posts, Post Types        |     Version:  2.9.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:  (none) => boonebgorges
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49830" 49830]:
 {{{
 #!CommitTicketReference repository="" revision="49830"
 Query: Respect post-type specific capabilities when querying for multiple
 post types.

 After this change, the relevant `read_private_posts` capability is checked
 for
 each queried post type. This ensures that private posts appear in search
 and
 archive queries for users who have the ability to view those posts.

 Props leogermani.

 Fixes #13509, #48968, #48556.
 }}}

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


More information about the wp-trac mailing list