Make WordPress Core

Changeset 63007


Ignore:
Timestamp:
08/04/2026 11:03:49 AM (2 months ago)
Author:
wildworks
Message:

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 ​https://github.com/WordPress/wordpress-develop/pull/12813

Props afercia, andrewserong, gulamdastgir04, mdridipu, ramonopoly, softglaze, wildworks.
Fixes #65794.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r62816 r63007  
    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' ),
    … …  
    18931895                'wp-format-library',
    18941896                'wp-list-reusable-blocks',
     1897                'wp-media-utils',
    18951898                'wp-reusable-blocks',
    18961899                'wp-patterns',
Note: See TracChangeset for help on using the changeset viewer.