Opened 9 years ago
Closed 9 years ago
#7621 closed defect (bug) (fixed)
Activity data not cleared out when deleting user programatically
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Activity | Version: | |
| Severity: | normal | 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.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.