[buddypress-trac] [BuddyPress Trac] #8175: Calling `wp_delete_user()` on multisite should not trigger data deletion

buddypress-trac noreply at wordpress.org
Wed Dec 4 05:05:40 UTC 2019


#8175: Calling `wp_delete_user()` on multisite should not trigger data deletion
--------------------------+------------------------------
 Reporter:  boonebgorges  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Members       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |
--------------------------+------------------------------

Comment (by johnjamesjacoby):

 I see what you mean.

 I wish we had our own functions for deleting users, but at the same time I
 know that would just be a third confusing alternative. Eventually they’d
 all need to boil down into using the WP core function anyway, so I think
 your patch is on the right track.

 How do you feel about swapping that is_multisite() call for a custom
 function with a filter hook in it? bp_should_delete_user_data or something
 better named… and we can use its internals for these environment nuances?
 Maybe someone would want to restore the old way, or maybe we discover some
 other new relative problem. It might be nice to have a Core function/hook
 to contain that?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8175#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list