[wp-trac] [WordPress Trac] #43701: Make the "read_private” cap accessible over the REST API

WordPress Trac noreply at wordpress.org
Wed Oct 10 20:48:24 UTC 2018


#43701: Make the "read_private” cap accessible over the REST API
---------------------------------------------+-----------------------------
 Reporter:  twoelevenjay                     |       Owner:
                                             |  danielbachhuber
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.0
Component:  REST API                         |     Version:  4.9.5
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api
---------------------------------------------+-----------------------------
Changes (by danielbachhuber):

 * owner:  (none) => danielbachhuber
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43694" 43694]:
 {{{
 #!CommitTicketReference repository="" revision="43694"
 REST API: Enable users with `read_private_posts` to query for them.

 An authorized request with the `read_private_posts` capability for a post
 type should be able to `GET /wp/v2/posts` for posts of `status=private`.
 This query is further sanity-checked by
 `WP_REST_Posts_Controller->check_read_permission()`, which is unchanged.

 Props rachelbaker, soulseekah, twoelevenjay.
 Fixes #43701.
 }}}

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


More information about the wp-trac mailing list