[wp-trac] [WordPress Trac] #45710: New feature: deleted related files when deleting a page or post

WordPress Trac noreply at wordpress.org
Wed Dec 19 20:26:22 UTC 2018


#45710: New feature: deleted related files when deleting a page or post
-----------------------------+-----------------------------
 Reporter:  gmr1970          |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  4.9.8
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hello,

 Nowadays, when you delete a page or post there's the downside that the
 related images will remain on the server.

 It would be great if WordPress keep track of where this image is being
 used. For example, image.png is used on 3 pages and 2 posts.

 So, when you're sending a page or post to the trash can, it will be great
 if WordPress could check if the related images are being used on another
 pages or posts.

 If not, the system could show a message:  "X image is not being used on
 any page or post. Do you wish to send it to the trash can as well?"

 The user would have the final choice if he wants to leave that file at the
 server or not.

 And this would also could lead to a new function to find orphan
 images/files.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45710>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list