Media: Register the wp-media-utils style handle. - #12813
Conversation
The `@wordpress/media-utils` package ships a stylesheet that is built into `wp-includes/css/dist/media-utils/`, but no matching style handle was registered. As a result the styles for the media editing modal provided by the package were never enqueued and the modal rendered unstyled. Register `wp-media-utils` alongside the other package styles, add it to the RTL-enabled handles, and make `wp-edit-post` depend on it so the modal is styled wherever the block editor loads it. See #65794.
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
I tested this branch locally at commit |
andrewserong
left a comment
There was a problem hiding this comment.
Good catch, thank you for fixing this! Also a good one for us to keep in mind if/when we ever roll out the media cropper to other screens in future releases.
Before
After
Note that the layout of the Author field has been corrected.
Trac ticket: https://core.trac.wordpress.org/ticket/65794
Use of AI Tools
Used for: Initial code skeleton and test suggestions; final implementation and tests were reviewed and edited by me.