[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:07:05 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
-------------------------------------------+-----------------------
Changes (by pento):
* owner: => pento
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"39464"]:
{{{
#!CommitTicketReference repository="" revision="39464"
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()`.
Props johnbillion, nacin, dd32, pento.
See #35614.
Fixes #39012.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39012#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list