WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35593


Ignore:
Timestamp:
01/25/2016 08:52:54 AM (4 years ago)
Author:
swissspidy
Comment:

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 to Metadata 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.
     1In 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.
    22
    33See wp-admin/includes/media.php: