Skip to:
Content

BuddyPress.org

Opened 23 months ago

Last modified 23 months ago

#7636 new defect (bug)

Cover image orphaned when user is deleted

Reported by: antipole Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version: 2.9.2
Component: Media Keywords: needs-patch good-first-bug
Cc: wordpress@…

Description

When a WordPress user is deleted, WP tidies up and deletes any user avatar, normally stored in /uploads/avatars/<usernumber> and the enclosing folder.

However, when a BuddyPress user is deleted through WordPRess, any cover image, normally stored in /uploads/buddypress/members/<usernumber> is left orphaned.

I think the cover images and the enclosing folder should be deleted.

This is the case for v2.9.2, which is not in the version list pull-down.

Thanks for the good work!

Change History (3)

#1 @antipole
23 months ago

  • Cc wordpress@… added

#2 @DJPaul
23 months ago

  • Component changed from Core to Media
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 2.9.0 to 2.9.2

We need to update something like bp_core_delete_avatar_on_user_delete() to do this.

#3 @boonebgorges
23 months ago

  • Keywords good-first-bug added

I started writing the patch (which is easy) but got caught up on the unit tests (which are almost impossible, because we have no procedural way of setting cover images). Tests are probably a nice-to-have, but not a must, for this ticket.

Note: See TracTickets for help on using tickets.