Changes between Initial Version and Version 1 of Ticket #35593
- Timestamp:
- 01/25/2016 08:52:54 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35593
- Property Keywords has-patch needs-testing added
-
Property
Summary
changed from
Metadata from wronge file in media_handle_upload
toMetadata from wrong file in media_handle_upload
-
Ticket #35593 – Description
initial v1 1 In media_handle_upload and media_handle_sideload the attachment metadata is generated after inserting the attachment. For that the same file name is used. However, if a plugin changes the filename in an 'add_attachment'hook the wrong file name will be used. Thus the wrong metadata is written or it is cleared.1 In media_handle_upload and media_handle_sideload the attachment metadata is generated after inserting the attachment. For that the same file name is used. However, if a plugin changes the filename in an `add_attachment` hook the wrong file name will be used. Thus the wrong metadata is written or it is cleared. 2 2 3 3 See wp-admin/includes/media.php: