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

WordPress Trac noreply at wordpress.org
Wed Feb 26 03:31:28 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):

 Interesting note - `wp_delete_user()` only removes the user from the
 current site if used in multisite. The user does not actually get deleted
 from the database. As it is, the hook `delete_user` is somewhat misleading
 in its documentation.

 There may be a way for us to clean this up before introducing new hooks or
 hook changes. We ''could'' move the multisite check up to the top and just
 bounce over to `remove_user_from_blog()`. Or we could merge
 `wp_delete_user()` and `wpmu_delete_user()`. It'd be nice to think some of
 that out first before adding a hook in somewhere.

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


More information about the wp-trac mailing list