[wp-trac] [WordPress Trac] #23057: Pass $reassign in the delete_user hook

WordPress Trac noreply at wordpress.org
Wed Dec 26 05:42:01 UTC 2012


#23057: Pass $reassign in the delete_user hook
-----------------------------+--------------------------
 Reporter:  genkisan         |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Users
  Version:  3.5              |   Severity:  normal
 Keywords:  has-patch        |
-----------------------------+--------------------------
 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".

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23057>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list