[wp-trac] [WordPress Trac] #32796: User deletion API is inconsistent between MS and non-MS

WordPress Trac noreply at wordpress.org
Fri Jun 26 12:56:45 UTC 2015


#32796: User deletion API is inconsistent between MS and non-MS
--------------------------+------------------------------------------
 Reporter:  boonebgorges  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Users         |    Version:
 Severity:  normal        |   Keywords:  needs-patch needs-unit-tests
  Focuses:  multisite     |
--------------------------+------------------------------------------
 On non-multisite, `wp_delete_user( $u )` does what you'd expect: it
 deletes user `$u` from the database. On multisite, the same function
 basically wraps `remove_user_from_blog()`; if you want to delete a user
 from the database altogether, you've got to use `wpmu_delete_user()`.

 I understand the historical reasons behind the divergence, but it's pretty
 lame from a developer's point of view to have to check `is_multisite()`
 before removing a user from the database.

 There's a note in the docblock for `wpmu_delete_user()` that says ` *
 @todo Merge with wp_delete_user() ?`. Maybe we could actually make this
 happen?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32796>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list