[wp-trac] [WordPress Trac] #35614: Cannot check capabilities on single taxonomy terms
WordPress Trac
noreply at wordpress.org
Sat Dec 3 05:07:06 UTC 2016
#35614: Cannot check capabilities on single taxonomy terms
-----------------------------+--------------------------
Reporter: johnjamesjacoby | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses:
-----------------------------+--------------------------
Comment (by pento):
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/35614#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list