WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6142 closed enhancement (fixed)

Remove intermediate images when deleting an attachment

Reported by: tellyworth Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

This deletes the intermediate sized images when an attachment is removed.

There's a simple unit test in http://svn.automattic.com/wordpress-tests/wp-testcase/test_includes_post.php, WPTestAttachments::test_insert_image_delete().

Attachments (1)

remove-intermediate-images-r7201.patch (1.8 KB) - added by tellyworth 6 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7271]) Remove intermediate images when deleting an attachment. Props tellyworth. fixes #6142

Note: See TracTickets for help on using tickets.