Wordpress/tests
Mike Schroder ffb2db0521 Media: Clean up prior image edits if `IMAGE_EDIT_OVERWRITE` is true.
When `IMAGE_EDIT_OVERWRITE` is set to true, edited image files are
supposed to be deleted when an image is restored to the original.

However, when an image was edited more than once, and then restored,
files created during previous edits were left behind.

Fixes this behavior by updating `wp_save_image()` to clean up
leftover images after each edit when `IMAGE_EDIT_OVERWRITE` is true.

Props bradt, chriscct7, joemcgill.
Fixes #32171.

git-svn-id: https://develop.svn.wordpress.org/trunk@38113 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-20 07:34:54 +00:00
..
phpunit Media: Clean up prior image edits if `IMAGE_EDIT_OVERWRITE` is true. 2016-07-20 07:34:54 +00:00
qunit Import: Enhance accessibility on the Import screen. 2016-07-17 15:31:29 +00:00