Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

delete old image and gif not playing #69

Description

i noticed that there is no filters for image size also the resize is making the gif not playing
and if i change the image or back to Gavatar the images that i uploaded doesn't get deleted from media.

in "public function avatar_delete( $user_id )" i added this line "wp_delete_attachment( $user_id, $old_avatars );" before "delete_user_meta( $user_id, 'basic_user_avatar' );"
now when i check "delete avatar": all the image that i uploaded gets deleted but...
if i upload another avatar without checking "delete avatar" the old image doesn't get deleted from media.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions