Skip to content

Commit 03b7c8a

Browse files
committed
Media: Register the wp-media-utils style handle.
The media editor modal rendered without its intended styles, because the stylesheet it relies on was never registered in core. Registering the handle makes the modal display as intended. Developed in WordPress#12813 Props afercia, andrewserong, gulamdastgir04, mdridipu, ramonopoly, softglaze, wildworks. Fixes #65794. git-svn-id: https://develop.svn.wordpress.org/trunk@63007 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1ef9d70 commit 03b7c8a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/wp-includes/script-loader.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,9 +1781,11 @@ function wp_default_styles( $styles ) {
17811781
'wp-reusable-blocks',
17821782
'wp-patterns',
17831783
'wp-preferences',
1784+
'wp-media-utils',
17841785
),
17851786
'format-library' => array(),
17861787
'list-reusable-blocks' => array( 'wp-components' ),
1788+
'media-utils' => array( 'wp-components' ),
17871789
'reusable-blocks' => array( 'wp-components' ),
17881790
'patterns' => array( 'wp-components' ),
17891791
'preferences' => array( 'wp-components' ),
@@ -1892,6 +1894,7 @@ function wp_default_styles( $styles ) {
18921894
'wp-editor',
18931895
'wp-format-library',
18941896
'wp-list-reusable-blocks',
1897+
'wp-media-utils',
18951898
'wp-reusable-blocks',
18961899
'wp-patterns',
18971900
'wp-nux',

0 commit comments

Comments
 (0)