Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't send title during mediaUploads; Fix: Image Uploads don't use exif title #13193
We are automatically computing the title based on the file name and we send it during media uploads.
I think we should remove the title computation from the client because of the following reasons:
If a plugin or a block wants a specific title to be used that is still possible, the title can be passed in additionalData object and in this case, the title will be used.
How has this been tested?
I used drag & drop on the test image to upload it. I pressed edit button on the created image block and I verified on the media modal that the caption was "My caption" and the title was "My title".
changed the title
Don't send title during mediaUploads. Fix: Image Uploads don't use exif title
Jan 4, 2019
Jan 11, 2019
1 check passed
I tested this and compared it to WordPress 4.9.8 and verified that the following behavior now matches:
Here are the relevant fields, output using
I used Lightroom to edit the EXIF and IPTC data before uploading the image.