[wp-trac] [WordPress Trac] #41411: REST API: Terms endpoint responses for PUT & POST requests don't set context to edit

WordPress Trac noreply at wordpress.org
Sun Jul 23 06:48:13 UTC 2017


#41411: REST API: Terms endpoint responses for PUT & POST requests don't set
context to edit
--------------------------+-----------------------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The endpoints for posts, users, and comments all set the `context` to
 `edit` when returning the resource in the response for POST and PUT
 requests. The terms endpoint, however, unexpectedly returns the resource
 with the `view` context. In practice this won't cause a problem since all
 of the fields (in core) have both the `view` and `edit` contexts, but if a
 plugin adds additional fields that should only appear in the `edit`
 context then this could cause a problem where the unexpected fields would
 be returned in the response.

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


More information about the wp-trac mailing list