diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index e4ec2088f0..3f685da67a 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -2732,6 +2732,10 @@ function wp_maybe_inline_styles() { * @since 5.8.0 */ function wp_add_iframed_editor_assets_html() { + if ( ! wp_should_load_block_editor_scripts_and_styles() ) { + return; + } + $script_handles = array(); $style_handles = array( 'wp-block-editor', diff --git a/wp-includes/version.php b/wp-includes/version.php index 8ac716bc1c..f1be7a1d6e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51539'; +$wp_version = '5.9-alpha-51540'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.