[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
Sat Dec 3 05:08:34 UTC 2016


#39012: REST API: Capability check for editing a single term should use the
singular form
-------------------------------------------+-----------------------
 Reporter:  johnbillion                    |       Owner:  pento
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  4.7
Component:  Taxonomy                       |     Version:  trunk
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  has-patch commit dev-reviewed  |     Focuses:  rest-api
-------------------------------------------+-----------------------

Comment (by pento):

 In [changeset:"39465"]:
 {{{
 #!CommitTicketReference repository="" revision="39465"
 REST API: Capability check for editing a single term should use the
 singular form.

 As an extra level of sanity checking, the term ID should be cast as an int
 in `map_meta_cap()`.

 Merge of [39464] to the 4.7 branch.

 Props johnbillion, nacin, dd32, pento.
 See #35614.
 Fixes #39012.
 }}}

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


More information about the wp-trac mailing list