[wp-trac] [WordPress Trac] #38958: REST API: Capability check for creating terms differs from wp-admin

WordPress Trac noreply at wordpress.org
Thu Dec 1 02:45:21 UTC 2016


#38958: REST API: Capability check for creating terms differs from wp-admin
-------------------------------------------+--------------------------
 Reporter:  johnbillion                    |       Owner:  rachelbaker
     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 rachelbaker):

 In [changeset:"39403"]:
 {{{
 #!CommitTicketReference repository="" revision="39403"
 REST API: Fix incorrect capability check on term create.

 Change the capability check used in `WP_REST_Terms_Controller` when
 creating a new term is attempted, from `manage_terms` to `edit_terms`.
 This matches the behavior within the WordPress admin. See #35614.

 Props johnbillion, rmccue, rachelbaker, helen, jorbin, SergeyBiryukov.

 Merges [39402] to the 4.7 branch.
 Fixes #38958 for 4.7.
 }}}

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


More information about the wp-trac mailing list