Make WordPress Core

Changeset 59793


Ignore:
Timestamp:
02/09/2025 10:32:50 PM (3 months ago)
Author:
peterwilsoncc
Message:

Editor: Update enqueued styles in the editor.

Updates the enqueued styles in various editors to remove target styles more precisely to where they are needed.

Removes the following stylesheets as dependencies of wp-edit-blocks:

  • wp-editor
  • wp-reusable-blocks
  • wp-patterns

The wp-editor stylesheet is targeted to the items requiring the CSS:

  • edit-widgets
  • customize-widgets
  • edit-site

Props ellatrix, youknowriad.
Fixes #62266, #62274.

File:
1 edited

Legend:

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

    r59790 r59793  
    16811681    );
    16821682
     1683    // Only add CONTENT styles here that should be enqueued in the iframe!
    16831684    $wp_edit_blocks_dependencies = array(
    16841685        'wp-components',
    1685         'wp-editor',
    16861686        /*
    16871687         * This needs to be added before the block library styles,
     
    16901690        'wp-reset-editor-styles',
    16911691        'wp-block-library',
    1692         'wp-reusable-blocks',
    16931692        'wp-block-editor-content',
    1694         'wp-patterns',
    16951693    );
    16961694
     
    17511749            'wp-widgets',
    17521750            'wp-block-editor',
     1751            'wp-editor',
    17531752            'wp-edit-blocks',
    17541753            'wp-block-library',
    1755             'wp-reusable-blocks',
    17561754            'wp-patterns',
    17571755            'wp-preferences',
     
    17601758            'wp-widgets',
    17611759            'wp-block-editor',
     1760            'wp-editor',
    17621761            'wp-edit-blocks',
    17631762            'wp-block-library',
    1764             'wp-reusable-blocks',
    17651763            'wp-patterns',
    17661764            'wp-preferences',
     
    17691767            'wp-components',
    17701768            'wp-block-editor',
     1769            'wp-editor',
    17711770            'wp-edit-blocks',
    17721771            'wp-commands',
Note: See TracChangeset for help on using the changeset viewer.