Support » Requests and Feedback » Provide warning when deleting media photos

  • I urge WordPress to give warning when deleting media photos that’s uploaded onto posts.

    It was so easy to delete media and I just thought those photos already uploaded and no long necessary to store in my media. But it turns out all my posts photos was deleted as well.

    This is extremely annoying and affecting the performance of my site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    That is unfeasible. Scanning through the content of all your posts to find out if an image is used or not would be extremely time consuming and complicated.

    They way I could see of doing this would be to add an image meta field that tracks which posts an image is used on when it is added to it. Though, if an image were erased in an WYSIWYG editor, it would be tricky to track the removal. The Gutenberg image block technology adds capacity here.

    • This reply was modified 8 months, 1 week ago by Michael.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Provide warning when deleting media photos’ is closed to new replies.