diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index aceeffcdc99af..5aa991972477c 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -1680,18 +1680,16 @@ function wp_default_styles( $styles ) { array( 'wp-components' ) ); + // Only add CONTENT styles here that should be enqueued in the iframe! $wp_edit_blocks_dependencies = array( 'wp-components', - 'wp-editor', /* * This needs to be added before the block library styles, * The block library styles override the "reset" styles. */ 'wp-reset-editor-styles', 'wp-block-library', - 'wp-reusable-blocks', 'wp-block-editor-content', - 'wp-patterns', ); // Only load the default layout and margin styles for themes without theme.json file. @@ -1750,24 +1748,25 @@ function wp_default_styles( $styles ) { 'edit-widgets' => array( 'wp-widgets', 'wp-block-editor', + 'wp-editor', 'wp-edit-blocks', 'wp-block-library', - 'wp-reusable-blocks', 'wp-patterns', 'wp-preferences', ), 'customize-widgets' => array( 'wp-widgets', 'wp-block-editor', + 'wp-editor', 'wp-edit-blocks', 'wp-block-library', - 'wp-reusable-blocks', 'wp-patterns', 'wp-preferences', ), 'edit-site' => array( 'wp-components', 'wp-block-editor', + 'wp-editor', 'wp-edit-blocks', 'wp-commands', 'wp-preferences',