WordPress/wp-includes/rest-api
Rachel Baker 1d9a15ad4a 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.

Built from https://develop.svn.wordpress.org/branches/4.7@39403


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-01 02:46:43 +00:00
..
endpoints REST API: Fix incorrect capability check on term create. 2016-12-01 02:46:43 +00:00
fields REST API: Correctly map meta keys to field names. 2016-11-21 05:41:30 +00:00
class-wp-rest-request.php REST API: Only provide JSON error code on PHP 5.3+. 2016-11-03 04:57:30 +00:00
class-wp-rest-response.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:50:33 +00:00
class-wp-rest-server.php Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy. 2016-11-17 15:53:33 +00:00