Changes between Initial Version and Version 4 of Ticket #30394
- Timestamp:
- 12/04/2014 10:22:45 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30394
- Property Keywords has-patch added
-
Property
Milestone
changed from
Awaiting Review
toFuture Release
-
Ticket #30394 – Description
initial v4 1 The ` ``update_attached_file()``` call in ```wp_save_image()``` (``` wp-admin/includes/image-edit.php```) fails when IMAGE_EDIT_OVERWRITE is enabled because the underlying ```update_meta_value()``` call has a ```meta_value``` (file path) that matches the value already in the DB.1 The `update_attached_file()` call in `wp_save_image()` (`wp-admin/includes/image-edit.php`) fails when IMAGE_EDIT_OVERWRITE is enabled because the underlying `update_meta_value()` call has a `meta_value` (file path) that matches the value already in the DB. 2 2 3 ` ``$success = update_attached_file( $post_id, $new_path );```3 `$success = update_attached_file( $post_id, $new_path );` 4 4 5 The failure there leads to subsequent file deletion at the end of ` ``wp_save_image()```.5 The failure there leads to subsequent file deletion at the end of `wp_save_image()`. 6 6 7 ` ``@unlink( $delpath );```7 `@unlink( $delpath );` 8 8 9 9 Likely related in some way: #30167