WordPress/wp-includes/rest-api/endpoints
Gary Pendergast 43eb2619e9 REST API: Require the reassign parameter when deleting users.
When deleting a user through the WordPress admin, a specific decision is presented - whether to assign all of the user's posts to another user, or to delete all of the posts.

This change requires `reassign` as a parameter in the corresponding REST API endpoint, so that content isn't accidentally lost.

Merges [39426] to the 4.7 branch.

Props jeremyfelt.
Fixes #39000.


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


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-02 06:59:34 +00:00
..
class-wp-rest-attachments-controller.php REST API: Always fire the `rest_insert_*` actions after the related object is updated or inserted. 2016-11-23 15:33:31 +00:00
class-wp-rest-comments-controller.php REST API: Add support for comments of password-protected posts. 2016-11-23 16:15:31 +00:00
class-wp-rest-controller.php REST API: Remove rest_get_post filter and `get_post` abstraction. 2016-11-08 13:09:33 +00:00
class-wp-rest-post-statuses-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-post-types-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-posts-controller.php REST API: Special case the “standard” post format to always be allowed. 2016-11-24 00:08:31 +00:00
class-wp-rest-revisions-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-settings-controller.php REST API: Switch to stable version of JSON Schema. 2016-11-03 02:22:29 +00:00
class-wp-rest-taxonomies-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-terms-controller.php REST API: Fix incorrect capability check on term create. 2016-12-01 02:46:43 +00:00
class-wp-rest-users-controller.php REST API: Require the reassign parameter when deleting users. 2016-12-02 06:59:34 +00:00