[wp-trac] [WordPress Trac] #39012: REST API: Capability check for editing a single term should use the singular form

WordPress Trac noreply at wordpress.org
Thu Dec 1 20:18:35 UTC 2016


#39012: REST API: Capability check for editing a single term should use the
singular form
--------------------------+-------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  Taxonomy      |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  rest-api      |
--------------------------+-------------------------
 The capability check used in
 `WP_REST_Terms_Controller::get_item_permissions_check()` is `edit_terms`,
 but it should be `edit_term` with the associated term ID.

 The docblock description also needs correcting.

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


More information about the wp-trac mailing list