• Hi,

    I face something unusual behavior when I sweep “Deleted posts“. Every time I click on the “Deleted posts Sweep” button it deleted one image that I have uploaded to WordPress.

    Problem is that every time I click sweep for deleted posts, it only deleted that particular image.

    After this plugin has been deleted that image (after sweeping deleted posts) if I re-upload the same image with the same file name, and again if I click on sweep “Deleted posts”, I’m experiencing the same issue.

    If I click on the “Details” button, it shows only that uploaded image. This image has already been inserted into the published post.

    • This topic was modified 2 years, 9 months ago by Bluemad.
    • This topic was modified 2 years, 9 months ago by Bluemad.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Hmm, I have not come across something like that before. The only thing I can think of is for some reason, WP insert the image and associate it with a post status = trash?

    Because this sweep just query for posts with status = “trash” and run wp_delete_post() on it.

    Thread Starter Bluemad

    (@bluemad)

    Hi,

    I found the exact reason this plugin is deleting some of the uploaded images.

    If I uploaded an image eg: my.png and deleted and later if I re-uploaded the same image with exact same name eg: my.png, this plugin identifies that image as a deleted.

    That is why my uploaded images were deleted by this plugin.

    If I manually empty the “Media Library Trash“, there is no such issue. I believe this plugin deletes the same name containing images in Media Library trash as well as undelete images in Media Library.

    • This reply was modified 2 years, 6 months ago by Bluemad.
    • This reply was modified 2 years, 6 months ago by Bluemad.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deleted Posts “Sweep” remove uploaded images.’ is closed to new replies.