strangerstudios / basic-user-avatars

Add an avatar upload field on frontend pages and on the Edit Profile screen so users and admins can manage custom profile pictures without Gravatar.
https://wordpress.org/plugins/basic-user-avatars/
39 stars 34 forks source link

Deleting old avatars not working when replacing them with new #80

Open efc opened 7 months ago

efc commented 7 months ago

On the profile page, the description of what this plugin will do is "Replace the local avatar by uploading a new avatar". However, when we upload a new avatar the old one is left in the upload folder. It is not "replaced" but simply superseded, leaving old unused avatars in the filesystem.

This appears to be the result of a bug on line 352 of the init.php file. We have created a pull request to fix this bug. We hope you can implement the fix in the shipping code soon.