Opened 5 months ago

Last modified 5 months ago

#23057 new enhancement

Pass $reassign in the delete_user hook

Reported by: genkisan 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)

user.php (13.3 KB) - added by genkisan 5 months ago.
user.php.patch (593 bytes) - added by genkisan 5 months ago.

Download all attachments as: .zip

Change History (4)

  • Keywords has-patch removed
  • Type changed from defect (bug) to enhancement

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/.

  • Keywords has-patch added

Oops. Patch submitted.

Note: See TracTickets for help on using tickets.