[wp-trac] [WordPress Trac] #24518: wp_delete_attachment() does not delete all the intermediate image sizes on some conditions

WordPress Trac noreply at wordpress.org
Thu Oct 2 15:31:59 UTC 2014


#24518: wp_delete_attachment() does not delete all the intermediate image sizes on
some conditions
----------------------------+-----------------------------
 Reporter:  JoshuaAbenazer  |       Owner:  wonderboymusic
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  4.1
Component:  Media           |     Version:  3.5.1
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"29816"]:
 {{{
 #!CommitTicketReference repository="" revision="29816"
 In `wp_delete_attachment()`: account for orphan sizes by looping over the
 sizes stored in metadata, instead of relying on the current sizes stored
 in `$_wp_additional_image_sizes`.

 Props JoshuaAbenazer, desrosj, markoheijnen.
 Fixes #24518.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24518#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list