[buddypress-trac] [BuddyPress Trac] #7621: Activity data not cleared out when deleting user programatically

buddypress-trac noreply at wordpress.org
Fri Nov 3 21:11:48 UTC 2017


#7621: Activity data not cleared out when deleting user programatically
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.0
Component:  Activity      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11738"]:
 {{{
 #!CommitTicketReference repository="" revision="11738"
 Remove logged-in check from `bp_activity_remove_all_user_data()`.

 This function is called on the `delete_user` and `wpmu_delete_user` hooks.
 During normal operation, these hooks only fire for users with the
 `delete_users` cap. So the `is_user_logged_in()` check is not necessary.
 It also interferes with the ability to delete users fully in an
 automated fashion, as by script.

 Introduced in [3753].

 Fixes #7621.
 }}}

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


More information about the buddypress-trac mailing list