[wp-trac] [WordPress Trac] #32171: Images not removed upon restore when IMAGE_EDIT_OVERWRITE true

WordPress Trac noreply at wordpress.org
Tue Apr 28 18:57:39 UTC 2015


#32171: Images not removed upon restore when IMAGE_EDIT_OVERWRITE true
----------------------------+-----------------------------
 Reporter:  bradt           |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Media           |    Version:  4.2.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 With IMAGE_EDIT_OVERWRITE set to true, image edit files are removed when
 the original image is restored. But in certain cases, leftover image edit
 files remain.

 Steps to reproduce:

 1. Add `define( 'IMAGE_EDIT_OVERWRITE', true );` to your wp-config.php
 1. Upload an image
 1. Crop it and save
 1. Crop it and save again

 You'll notice that the second crop overwrote the 150x150 intermediate
 image, created some new intermedia images, and left some intermediate
 images from the first crop behind. Now if you restore the original image,
 the images created by the second crop are removed, but the leftover images
 from the first crop remain.

 It should probably remove the images from the first crop when you do the
 second crop.

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


More information about the wp-trac mailing list