#23057 closed enhancement (fixed)
Pass $reassign in the delete_user hook
Reported by: | genkisan | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Users | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
File: wp-admin\includes\user.php
In the wp_delete_user function, there are 2 do_action hooks
- do_action('delete_user', $id);
- do_action('deleted_user', $id);
The $reassign variable should also be passed along. We can then decide what to do when the admin delete a user by "Delete all posts" or "Attribute all posts to: XYZ".
Attachments (3)
Change History (11)
#3
@
11 years ago
- Keywords commit added
- Milestone changed from Awaiting Review to 3.9
This would be useful to me too. Co-Authors Plus is currently depending on the $_POST
variable.
#4
@
11 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 27462:
Note: See
TracTickets for help on using
tickets.
You can submit an actual patch rather than the entire file.
Please take a look at http://make.wordpress.org/core/handbook/submitting-a-patch/.