Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5d095a5
Media: Route media modal uploads through the client-side pipeline
adamsilverstein Sep 4, 2026
6f088f1
Media: Cover client-side uploads started from the media modal
adamsilverstein Sep 4, 2026
7da1c63
Media: Add changelog entry for media modal client-side uploads
adamsilverstein Sep 4, 2026
43825c7
Merge branch 'trunk' into fix/82409-media-modal-client-side-uploads
adamsilverstein Sep 4, 2026
0a3001e
Media: Address the upload-media store by name in the modal upload patch
adamsilverstein Sep 4, 2026
3f85d4a
Media: Address review feedback on the modal upload patch
adamsilverstein Sep 4, 2026
f676409
Media: Type the upload-media store accessors
adamsilverstein Sep 4, 2026
79be6d7
Merge remote-tracking branch 'origin/trunk' into fix/82409-media-moda…
adamsilverstein Sep 15, 2026
2cceae8
Merge remote-tracking branch 'origin/trunk' into fix/82409-media-moda…
adamsilverstein Sep 18, 2026
3939d55
Media: Only take a modal upload where the pipeline is configured
adamsilverstein Sep 18, 2026
1e61ec2
Media: Wait on the pipeline's own request in the modal upload e2e
adamsilverstein Sep 18, 2026
899de16
Media Utils: Move this PR's changelog entry back under Unreleased
adamsilverstein Sep 18, 2026
e6c8d36
Merge remote-tracking branch 'origin/trunk' into fix/82409-media-moda…
adamsilverstein Sep 23, 2026
824241a
Read the pipeline's attachment shape in the modal tile fallback
adamsilverstein Sep 23, 2026
291acb6
Clear the modal tile's uploading state before the refetch
adamsilverstein Sep 25, 2026
42291f0
Type the refetch mock so its implementation is callable
adamsilverstein Sep 25, 2026
7cf537d
Merge remote-tracking branch 'origin/trunk' into fix/82409-media-moda…
adamsilverstein Sep 30, 2026
76a2634
Media modal uploads: only intercept attachment uploaders and type the…
adamsilverstein Sep 30, 2026
cea684f
Media modal uploads: yield to core's media frame integration
adamsilverstein Sep 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/media-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug Fixes

- Route uploads started from the editor's media modal through the client-side media pipeline instead of `async-upload.php`, so they are processed the same way as a file dropped on a block ([#82473](https://github.com/WordPress/gutenberg/pull/82473)).
- Declare `react-dom` and `@types/react-dom` as peer dependencies, forwarding the peers of `@wordpress/element`, so strict package managers such as Yarn PnP can resolve them ([#83765](https://github.com/WordPress/gutenberg/pull/83765)).

## 5.56.0 (2026-09-23)
Expand Down
8 changes: 8 additions & 0 deletions packages/media-utils/src/components/media-upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { __ } from '@wordpress/i18n';
import deprecated from '@wordpress/deprecated';
import { select, dispatch } from '@wordpress/data';
import { invalidateAttachmentResolutions } from '../../utils/invalidate-attachment-resolutions';
import { installClientSideModalUploads } from '../../utils/client-side-modal-uploads';

const DEFAULT_EMPTY_GALLERY = [];

Expand Down Expand Up @@ -565,6 +566,13 @@ class MediaUpload extends Component {
}

openModal() {
// Route the modal's own uploads through the client-side media
// pipeline when it is available, so a file uploaded here is processed
// the same way as one dropped on a block. Installed here rather than
// at import time because it patches `wp.Uploader`, which the media
// scripts only define once they have run.
installClientSideModalUploads();

const {
gallery = false,
featuredImageFlow,
Expand Down
Loading
Loading