WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#12720 new defect (bug)

Delete user and hook confusion when deleting users in Multisite

Reported by: andreasnrb Owned by:
Priority: normal Milestone: Future Release
Component: Users Version: 3.0
Severity: normal Keywords: multisite needs-patch
Cc:

Description

Currently:
The hook wpmu_delete_user fires when deleting user in Super Admin->Users.
The hook remove_user_from_blog when deleting user under site Users->Authors & Users.
In standard WP:
The hook delete_user is called when deleting users it should be the same in MultiSite when deleting from Super Admin->Users.
Or add new hooks and deprecate previous.
delete_user_from_network for when deleting a user totally.
delete_user_from_site for when deleting a user from a specific site. This is hook also then fires in non-MultiSite mode since that then corresponds to one site.

Change History (2)

comment:1 nacin3 years ago

  • Milestone changed from Unassigned to Future Release

comment:2 nacin3 years ago

  • Keywords multisite needs-patch added; hooks delete user removed
Note: See TracTickets for help on using tickets.