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 |
||
---|---|---|
src | ||
tests | ||
tools/i18n | ||
.editorconfig | ||
.gitignore | ||
.jshintrc | ||
.travis.yml | ||
Gruntfile.js | ||
package.json | ||
phpunit.xml.dist | ||
wp-cli.yml | ||
wp-config-sample.php | ||
wp-tests-config-sample.php |