Issue Overview
In #1820, a gallery prop was added to the MediaUploadButton component, which is used to select a custom workflow for creating an image gallery. This works, but it seems like a better solution might be to let components using MediaUploadButton pass a custom workflow (e.g., wp.media.frame ) to the MediaUploadButton instead, since we're likely going to need custom workflows for many different kinds of media blocks that access the media modal.
Related Issues and/or PRs
Issue Overview
In #1820, a
galleryprop was added to theMediaUploadButtoncomponent, which is used to select a custom workflow for creating an image gallery. This works, but it seems like a better solution might be to let components usingMediaUploadButtonpass a custom workflow (e.g.,wp.media.frame) to theMediaUploadButtoninstead, since we're likely going to need custom workflows for many different kinds of media blocks that access the media modal.Related Issues and/or PRs