[wp-trac] [WordPress Trac] #12720: Delete user and hook confusion when deleting users in Multisite

WordPress Trac noreply at wordpress.org
Fri Feb 21 17:26:40 UTC 2014


#12720: Delete user and hook confusion when deleting users in Multisite
--------------------------+-----------------------------
 Reporter:  andreasnrb    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Users         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  multisite
--------------------------+-----------------------------

Comment (by jeremyfelt):

 Hey @andreasnrb, sorry about the wait!

 * `delete_user` fires before anything happens in `wp_delete_user()`
 * `wpmu_delete_user` fires before anything happens in
 `wpmu_delete_user()`, which has a todo note wondering if we can merge with
 `wpmu_delete_user()`
 * `remove_user_from_blog` fires before a user is removed from a site,
 which doesn't necessarily mean they are deleted.

 I think `delete_user` is enough here. We could probably think about moving
 it alongside `wpmu_delete_user` in `wpmu_delete_user()` or figure out if a
 merge of the two functions is possible.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12720#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list