From 70cd0fa3c3c2fb09348d376cee383c31e00300ef Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 13 Nov 2018 00:25:48 +0000 Subject: [PATCH] Script Loader: Fix an error introduced in [43893]. `wp_common_block_scripts_and_styles()` should only exit early if we're in the admin and the current screen isn't the block editor. See #45302. Built from https://develop.svn.wordpress.org/branches/5.0@43894 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43723 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index b31c0b1700..6cf83b6f9c 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -2252,7 +2252,7 @@ function script_concat_settings() { function wp_common_block_scripts_and_styles() { global $current_screen; - if ( ( $current_screen instanceof WP_Screen ) && ! $current_screen->is_block_editor() ) { + if ( is_admin() && ( $current_screen instanceof WP_Screen ) && ! $current_screen->is_block_editor() ) { return; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9d3ad6234b..713f32803a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-beta3-43893'; +$wp_version = '5.0-beta3-43894'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.