WordPress/wp-includes/rest-api/endpoints
K. Adam White 00cb4c7dbd REST API: Prevent deletion of post revisions.
Allowing the client to delete revisions breaks the "audit trail" functionality. This is not allowed in WordPress and shouldn't be allowed through the API.
While not recommended, a plugin may opt-in to the previous behavior by setting a custom 'delete_post' capability for the revisions post type.

Props dlh, danielbachhuber, TimothyBlynJacobs, azaozz, kadamwhite.
Fixes #43709.


Built from https://develop.svn.wordpress.org/trunk@45812


git-svn-id: http://core.svn.wordpress.org/trunk@45623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-15 22:01:55 +00:00
..
class-wp-rest-attachments-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-autosaves-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-block-renderer-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-blocks-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-comments-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-post-statuses-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-post-types-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-posts-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-revisions-controller.php REST API: Prevent deletion of post revisions. 2019-08-15 22:01:55 +00:00
class-wp-rest-search-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-settings-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-taxonomies-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-terms-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-themes-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00
class-wp-rest-users-controller.php REST API: Cache results of get_item_schema on controller instances for performance. 2019-08-15 21:09:55 +00:00