Skip to content

Commit

Permalink
Editor: Unify the MediaUpload hook between post and site editors. (Wo…
Browse files Browse the repository at this point in the history
…rdPress#62085)

Co-authored-by: youknowriad <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored and patil-vipul committed Jun 17, 2024
1 parent d898c1c commit 96de5a8
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 22 deletions.
4 changes: 0 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/edit-post/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@wordpress/icons": "file:../icons",
"@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts",
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/media-utils": "file:../media-utils",
"@wordpress/notices": "file:../notices",
"@wordpress/plugins": "file:../plugins",
"@wordpress/preferences": "file:../preferences",
Expand Down
13 changes: 0 additions & 13 deletions packages/edit-post/src/hooks/components/index.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/edit-post/src/hooks/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* Internal dependencies
*/
import './components';
import './validate-multiple-use';
1 change: 0 additions & 1 deletion packages/edit-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"@wordpress/icons": "file:../icons",
"@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts",
"@wordpress/keycodes": "file:../keycodes",
"@wordpress/media-utils": "file:../media-utils",
"@wordpress/notices": "file:../notices",
"@wordpress/patterns": "file:../patterns",
"@wordpress/plugins": "file:../plugins",
Expand Down
1 change: 0 additions & 1 deletion packages/edit-site/src/hooks/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* Internal dependencies
*/
import './components';
import './push-changes-to-global-styles';
1 change: 1 addition & 0 deletions packages/editor/src/hooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*/
import './custom-sources-backwards-compatibility';
import './default-autocompleters';
import './media-upload';
import './pattern-overrides';
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import { MediaUpload } from '@wordpress/media-utils';

addFilter(
'editor.MediaUpload',
'core/edit-site/components/media-upload',
'core/editor/components/media-upload',
() => MediaUpload
);

0 comments on commit 96de5a8

Please sign in to comment.