Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
utils: mediaUpload: Pass all available properties in the media object #9704
Initially, mediaUpload util only passed to the callback function of the invoker a simple object with the URL of the file, a caption, and an alt. With time needs for other props appeared and the function was changed to add the missing props. The most recent need was mediaDetails.sizes.
How has this been tested?
I checked that blocks where we upload files (image, gallery, video, audio and file) the uploads still work as before.
Required for: #9416