diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 48b6e7587a..ad9453292a 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -2170,7 +2170,7 @@ function script_concat_settings() { * @global WP_Screen $current_screen WordPress current screen object. */ function wp_common_block_scripts_and_styles() { - if ( is_admin() && ! _should_load_block_editor_scripts_and_styles() ) { + if ( is_admin() && ! wp_should_load_block_editor_scripts_and_styles() ) { return; } @@ -2198,11 +2198,10 @@ function wp_common_block_scripts_and_styles() { * should be enqueued on the current screen. * * @since 5.6.0 - * @access private * * @return bool */ -function _should_load_block_editor_scripts_and_styles() { +function wp_should_load_block_editor_scripts_and_styles() { global $current_screen; $is_block_editor_screen = ( $current_screen instanceof WP_Screen ) && $current_screen->is_block_editor(); @@ -2229,7 +2228,7 @@ function _should_load_block_editor_scripts_and_styles() { function wp_enqueue_registered_block_scripts_and_styles() { global $current_screen; - $load_editor_scripts = _should_load_block_editor_scripts_and_styles(); + $load_editor_scripts = wp_should_load_block_editor_scripts_and_styles(); $block_registry = WP_Block_Type_Registry::get_instance(); foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 16090aeffd..6def84bd0a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49092'; +$wp_version = '5.6-alpha-49093'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.