Wordpress/tests
K. Adam White 8f100777e8 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@45812 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-15 22:00:49 +00:00
..
e2e Build Tools: Miscellaneous local-env improvements. 2019-08-12 08:28:33 +00:00
phpunit REST API: Prevent deletion of post revisions. 2019-08-15 22:00:49 +00:00
qunit Regenerate the REST API fixtures after [45443]. 2019-06-07 20:23:46 +00:00