Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #30394


Ignore:
Timestamp:
12/04/2014 10:22:45 AM (9 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30394

    • Property Keywords has-patch added
    • Property Milestone changed from Awaiting Review to Future 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.
     1The `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.
    22
    3 ```$success = update_attached_file( $post_id, $new_path );```
     3`$success = update_attached_file( $post_id, $new_path );`
    44
    5 The failure there leads to subsequent file deletion at the end of ```wp_save_image()```.
     5The failure there leads to subsequent file deletion at the end of `wp_save_image()`.
    66
    7 ```@unlink( $delpath );```
     7`@unlink( $delpath );`
    88
    99Likely related in some way: #30167