[buddypress-trac] [BuddyPress Trac] #7636: Cover image orphaned when user is deleted

buddypress-trac noreply at wordpress.org
Sat May 17 22:06:10 UTC 2025


#7636: Cover image orphaned when user is deleted
--------------------------------------+------------------------------------
 Reporter:  antipole                  |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting
                                      |  Contributions
Component:  Media                     |     Version:  2.9.2
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |
--------------------------------------+------------------------------------
Changes (by prbot):

 * keywords:  needs-patch good-first-bug => good-first-bug has-patch


Comment:

 ''This ticket was mentioned in
 [https://github.com/buddypress/buddypress/pull/409 PR #409] on
 [https://github.com/buddypress/buddypress/ buddypress/buddypress] by
 [https://profiles.wordpress.org/amitraj2203/ @amitraj2203].''
 - Added functions to delete the user’s cover image and related folder
 during user deletion.
 - Ensure cover images are properly removed when a user is deleted by
 hooking into `delete_user` and `wpmu_delete_user`.
 - This prevents orphaned cover image files in
 `/uploads/buddypress/members/<user_id>`.

 Trac ticket: https://buddypress.trac.wordpress.org/ticket/7636

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


More information about the buddypress-trac mailing list