[buddypress-trac] [BuddyPress Trac] #8175: Calling `wp_delete_user()` on multisite should not trigger data deletion
buddypress-trac
noreply at wordpress.org
Sun Mar 29 17:32:10 UTC 2020
#8175: Calling `wp_delete_user()` on multisite should not trigger data deletion
------------------------------------------------+--------------------------
Reporter: boonebgorges | Owner:
| boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0.0
Component: Members | Version:
Severity: normal | Resolution: fixed
Keywords: 2nd-opinion has-patch dev-feedback |
------------------------------------------------+--------------------------
Changes (by boonebgorges):
* owner: (none) => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"12605" 12605]:
{{{
#!CommitTicketReference repository="" revision="12605"
Don't delete user data on `delete_user` hook on Multisite.
The new function `bp_remove_user_data_on_delete_user_hook()`, which
defaults
to `false` on Multisite and `true` otherwise, helps BuddyPress to
differentiate
between the use of `wp_delete_user()` to delete a user account from an
installation (typical on non-Multisite) and its use to remove a user from
a site in a Multisite instance.
Props imath.
Fixes #8175.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8175#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list