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
This commit is contained in:
noisysocks 2020-10-06 04:18:10 +00:00
parent dc7bda9620
commit 274cb9718d
2 changed files with 4 additions and 5 deletions

View File

@ -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 ) {

View File

@ -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.