[wp-trac] [WordPress Trac] #20658: Thumbnails are not removed when the main image is deleted

WordPress Trac wp-trac at lists.automattic.com
Fri May 11 12:52:33 UTC 2012


#20658: Thumbnails are not removed when the main image is deleted
----------------------------+-----------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  3.4
Component:  Media           |    Version:  3.4
 Severity:  major           |   Keywords:  has-patch
----------------------------+-----------------------
 `wp_delete_attachment()` relies on attachment metadata when removing
 intermediate images:
 http://core.trac.wordpress.org/browser/tags/3.3.1/wp-
 includes/post.php#L3820

 Since [20435], the metadata is no longer accessible (deleted from both
 database and cache) at that point.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20658>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list