REST API: Require the reassign parameter when deleting users
|Reported by:||jeremyfelt||Owned by:||pento|
|Component:||Users||Keywords:||has-patch has-unit-tests commit|
In both single site and multisite, 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.
Via discussion in Slack and in #38962, which disables the DELETE method for the user endpoint in multisite, we need to require reassign as a parameter so that content isn't accidentally lost.
Because any int, especially 0 and above, is a valid value for reassigning post_author, we also need change reassign so that it allows for null as an indication that a deleted user's posts should also be deleted.
Change History (17)
5 months ago
- Keywords has-patch has-unit-tests commit added; needs-patch needs-unit-tests removed
- Owner changed from jeremyfelt to pento
- Status changed from assigned to reviewing