WP 6.7RC-1: wp.mediaUtils.uploadMedia no longer returns Promise #66551
Labels
[Feature] Media
Anything that impacts the experience of managing media
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Bug
An existing feature does not function as intended
Description
Hi all!
We were testing our plugin on WordPress 6.7RC-1, and noticed that our media uploader no longer works. Managed to track it to the differences in wp.mediaUtils.uploadMedia between 6.6.2 and 6.7RC-1.
We use this simple code for tests (based on the readme ):
Compare the results between versions:
6.7RC-1:
6.6.2:
We can adjust code in our plugin to make it work on both versions, but would be nice to know if this change was intentional.
Thanks.
Step-by-step reproduction instructions
in your console.
4. Check the result.
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: