Opened 8 years ago
Closed 8 years ago
#7621 closed defect (bug) (fixed)
Activity data not cleared out when deleting user programatically
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Activity | Keywords: | |
Cc: |
Description ¶
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.
Commits (1)
- [11738] Remove logged-in check from
bp_activity_remove_all_user_data()
.… by @boonebgorges 8 years ago
Pull Requests
- Loading…
Note: See
TracTickets for help on using
tickets.
Introduced in [3753]. That same changeset introduced many similar checks in places that may or may not make sense. I am uninterested in cleaning them all up right now :-D but I will fix this one.