-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import mediaUpload from @wordpress/editor #14651
Conversation
With the components moving from the @wordpress/editor package to @wordpress/block-editor the import statements were updated. However, the mediaUpload function didn't move packages and this broke part of some of the meda block's upload mechanisms. This change swaps back to importing mediaUpload from @wordpress/editor
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: March 3, 2020. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this after confirming the bug and the fix using the instructions from 14457 with latest stable WP.
When uploading the original image to a Jetpack Slideshow block, I did get a "uncaught exception: Object" error in the console both on master and this branch, so I'm assuming it is unrelated.
Can someone take care of deploying D38748-code ? Thanks! |
Done in r202797-wpcom. |
With the components moving from the @wordpress/editor package to @wordpress/block-editor the import statements were updated. However, the mediaUpload function didn't move packages and this broke part of some of the meda block's upload mechanisms. This change swaps back to importing mediaUpload from @wordpress/editor
Cherry-picked to |
With the components moving from the @wordpress/editor package to
@wordpress/block-editor the import statements were updated 47bd913. However, the
mediaUpload
function didn't move packages and this broke part of some ofthe media blocks' upload mechanisms.
Fixes #14457
Changes proposed in this Pull Request:
This change swaps back to importing
mediaUpload
from @wordpress/editorAt some point, we should probably move to getting
mediaUpload
from the editor settings, but currently, nothing is deprecated and that has only fairly recently become a stable API WordPress/gutenberg#18156Is this a new feature or does it add/remove features to an existing part of Jetpack?
This is a bug fix
Testing instructions:
Follow the testing instructions in #14457 and check that you can now upload media to a Slideshow, VideoPress and Tiled Gallery block
Proposed changelog entry for your changes:
Bug fixed that prevented media being uploaded in the Slideshow, Tiled Gallery, and VideoPress blocks