[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 04:54:45 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                         |  Resolution:
 Keywords:  has-patch commit dev-reviewed  |     Focuses:  rest-api
-------------------------------------------+-----------------------

Comment (by nacin):

 @dd32 @pento and I are discussing both this and #35614 -- and the
 map_meta_cap() really needs an `(int)` here because there's always been
 weird gremlins in the terms API about numeric strings being thought about
 as slugs.

 `$request['id']` is also cast to an int everywhere else in this file. I
 suggest we put it in both places.

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


More information about the wp-trac mailing list