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

WordPress Trac noreply at wordpress.org
Fri Mar 14 19:17:29 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 DrewAPicture):

 Replying to [comment:5 danielbachhuber]:
 >      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.
 >
 > [https://github.com/wp-cli/wp-cli/issues/1072 WP-CLI just ran into
 this]. I'd be a huge fan of explicit core APIs for each behavior —
 `wp_delete_user()` seems to do too much right now.

 Seems like there might be a case for `wp_remove_user()` here, especially
 if the user isn't actually getting deleted. No time like the present to
 draw a distinct line between the concepts of removal vs deletion.

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


More information about the wp-trac mailing list