Opened 13 years ago
Closed 12 years ago
#18426 closed feature request (maybelater)
Delete users via XML-RPC
Reported by: | nprasath002 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | normal | Version: | 3.3 |
Component: | XML-RPC | Keywords: | has-patch |
Focuses: | Cc: |
Description
Input can be an array of user id's.
returns array of deleted user id's.
function is atmoic. if one user_id is invalid
no users will be deleted.
Attachments (4)
Change History (11)
#2
@
13 years ago
I agree.
I thought supporting bulk delete would decrease server load and data transfer
#3
@
13 years ago
- Version set to 3.3
I made some modifications to the patch
- Modified the return value as to return an error string when deleting a user is unsuccessful
- added support for reassigning asset of the user for another user
#5
@
13 years ago
Core does support bulk-deletion of users via Bulk Actions, but it also introduces an interstitial (reassignment of posts) and a confirmation. I don't see "bulk deletion" of users to be a particularly important enhancement to XML-RPC.
Note: See
TracTickets for help on using
tickets.
Cleaned up the patch and removed the multi-user delete functionality.
nprasath002, could you explain the rationale for the multi-user delete functionality? None of the other XML-RPC methods support that kind of behavior, and neither does WordPress core. While your original patch checks the IDs before it starts deleting things, it is not really atomic because one of the
wp_delete_user
calls could fail and you wouldn't be able to rollback the already deleted users.If there's a good reason I'd be willing to reinstate the multi-user delete, but for now I think it makes more sense to be consistent with all of the other methods.