WordPress/wp-includes/rest-api
Dominik Schilling ed71319421 Role/Capability: Use meta caps `edit_post`, `read_post`, and `delete_post` directly.
Rather than consulting the post type object, let `map_meta_cap()` handle that for us.

Props peterwilsoncc, ocean90.
Fixes #50128.
See #23226.
Built from https://develop.svn.wordpress.org/trunk@47850


git-svn-id: http://core.svn.wordpress.org/trunk@47626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-23 15:24:07 +00:00
..
endpoints Role/Capability: Use meta caps `edit_post`, `read_post`, and `delete_post` directly. 2020-05-23 15:24:07 +00:00
fields Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
search Docs: Add missing `@see` tag to `WP_REST_Post_Search_Handler` DocBlock. 2019-05-14 15:00:07 +00:00
class-wp-rest-request.php REST API: Handle parameter types consistently within set_param(). 2020-04-09 19:30:07 +00:00
class-wp-rest-response.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-rest-server.php Rest API: Ensure `rest_ensure_response()` upgrades `WP_HTTP_Response` to `WP_REST_Response`. 2020-05-23 14:36:09 +00:00