[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
Wed Nov 30 21:22:56 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 jeremyfelt):
Replying to [comment:7 rmccue]:
> Replying to [comment:6 dd32]:
> > 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
>
> Right, but the proposal is to use `PUT` in 4.8, as you're not deleting
the user, just removing their access to the site.
We'll skip `DELETE` for multisite in 4.7 (see [attachment:38962.diff]),
but the `reassign` param should be required for single site.
What should be passed as `reassign` to delete content instead? Right now
we only rely on passing the fallback `null` to `wp_delete_user()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38962#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list