Make WordPress Core


Ignore:
Timestamp:
02/01/2023 08:15:38 PM (2 years ago)
Author:
hellofromTonya
Message:

Editor: Separate content styles for iframe in wp_get_iframed_editor_assets() and wp_default_styles().

This changeset:

  • Removes the 'wp-block-editor' and 'wp-block-library' from the iframe's stylesheet collection (i.e. _wp_get_iframed_editor_assets()).
  • Adds the new 'wp-block-editor-content' for the separate stylesheet to the list of editor ('wp-edit-blocks') dependencies.

Why?

These PHP changes are part of the initiative to:

  • Separate the content styles contained in the block editor package into a separate stylesheet.
  • Avoid loading all block editor styles into the iframe.

References:

Follow-up to [53160], [50761].

Props ellatrix, youknowriad.
Fixes #57550.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.