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

buddypress-trac noreply at wordpress.org
Fri Nov 3 20:54:17 UTC 2017


#7621: Activity data not cleared out when deleting user programatically
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.0
Component:  Activity      |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 `bp_activity_remove_all_user_data()` is hooked to `wpmu_delete_user` and
 `delete_user`, and is responsible for cleaning up user activity data
 (including `last_activity`). However, the function bails if `!
 is_user_logged_in()`. This doesn't make much sense: it doesn't provide any
 security (it doesn't ask *which* user is logged in), and it makes it
 impossible to clean up after users who are deleted in a programmatic
 fashion, such as via wp-cli.

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


More information about the buddypress-trac mailing list