Opened 5 months ago
Last modified 5 months ago
#23057 new enhancement
Pass $reassign in the delete_user hook
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Users | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| 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 (2)
Change History (4)
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/.