diff --git a/wp-includes/block-editor.php b/wp-includes/block-editor.php index c872ae84fd..11df4c9a10 100644 --- a/wp-includes/block-editor.php +++ b/wp-includes/block-editor.php @@ -309,10 +309,13 @@ function _wp_get_iframed_editor_assets() { $style_handles = array( 'wp-block-editor', 'wp-block-library', - 'wp-block-library-theme', 'wp-edit-blocks', ); + if ( current_theme_supports( 'wp-block-styles' ) ) { + $style_handles[] = 'wp-block-library-theme'; + } + if ( 'widgets.php' === $pagenow || 'customize.php' === $pagenow ) { $style_handles[] = 'wp-widgets'; $style_handles[] = 'wp-edit-widgets'; diff --git a/wp-includes/version.php b/wp-includes/version.php index bdef0b28f7..8b88cd04fd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53418'; +$wp_version = '6.1-alpha-53419'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.