[wp-trac] [WordPress Trac] #44157: the comments/[id] endpoints should have the same permissions checks as the comments endpoint

WordPress Trac noreply at wordpress.org
Sat May 19 21:18:59 UTC 2018


#44157: the comments/[id] endpoints should have the same permissions checks as the
comments endpoint
--------------------------+-----------------------------
 Reporter:  tharsheblows  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I noticed this because custom comment types don't show up on the
 `comments` endpoint but it's possible to access them via their id in
 `comments/[comment_id]`.

 `get_item_permissions_check` should do the same checks as
 `get_items_permissions_check` in `WP_REST_Comments_Controller`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44157>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list