From 274cb9718d7f13d67f0f94308475531a6dc74e6b Mon Sep 17 00:00:00 2001 From: noisysocks Date: Tue, 6 Oct 2020 04:18:10 +0000 Subject: [PATCH] Editor: Rename _should_load_block_editor_scripts_and_styles to wp_should_load_block_editor_scripts_and_styles Follow-up to [49080]. Props zieladam, frank-klein. See #51330. Built from https://develop.svn.wordpress.org/trunk@49093 git-svn-id: http://core.svn.wordpress.org/trunk@48855 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 7 +++---- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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.