Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/full-site-editing/edit-site-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ function gutenberg_edit_site_init( $hook ) {
wp_enqueue_style( 'wp-block-library-theme' );
}

// Remove wp-reset-editor-styles, as it's not needed in the iframed site editor.
// When the site editor is merged to Core, wp-edit-blocks can be updated to load
// without the styles reset for the site editor. Until then, we remove it manually.
if ( isset( wp_styles()->registered['wp-edit-blocks'] ) ) {
$wp_edit_blocks_dependencies = array_diff( wp_styles()->registered['wp-edit-blocks']->deps, array( 'wp-reset-editor-styles' ) );
wp_styles()->registered['wp-edit-blocks']->deps = $wp_edit_blocks_dependencies;
}

/**
* Fires after block assets have been enqueued for the editing interface.
*
Expand Down