[wp-trac] [WordPress Trac] #39000: REST API: Require the reassign parameter when deleting users

WordPress Trac noreply at wordpress.org
Fri Dec 2 06:58:38 UTC 2016


#39000: REST API: Require the reassign parameter when deleting users
---------------------------------------------+-----------------------
 Reporter:  jeremyfelt                       |       Owner:  pento
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.7
Component:  Users                            |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api
---------------------------------------------+-----------------------

Comment (by pento):

 In [changeset:"39427"]:
 {{{
 #!CommitTicketReference repository="" revision="39427"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39000#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list