[wp-trac] [WordPress Trac] #38962: REST API: Don't delete posts/links when deleting/removing a user from a site in a multisite install

WordPress Trac noreply at wordpress.org
Tue Nov 29 02:19:30 UTC 2016


#38962: REST API: Don't delete posts/links when deleting/removing a user from a
site in a multisite install
------------------------------------------+------------------------
 Reporter:  ocean90                       |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  high                          |   Milestone:  4.7
Component:  REST API                      |     Version:  trunk
 Severity:  major                         |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  multisite
------------------------------------------+------------------------

Comment (by dd32):

 Replying to [comment:5 rmccue]:
 > Replying to [comment:4 ocean90]:
 > > I'd be fine with @jeremyfelt's roadmap, except that I think we should
 require `reassign` in 4.7 too. See attached screenshot, wp-admin has no
 default value either, you have to read and confirm the action.
 >
 > I'm not sure how this would actually work in practice, but requiring
 `reassign` doesn't sound great to me. What happens if you just want to
 update a user? You'd need to send e.g. `{ "name": "My New Name",
 "reassign": false }` even if you're not removing roles.

 The `reassign` param should only be required for `DELETE` methods, and as
 per above, should be restricted to single-site usage only for 4.7

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


More information about the wp-trac mailing list