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
This commit is contained in:
Gary Pendergast 2018-11-13 00:25:48 +00:00
parent 6b97594e65
commit 70cd0fa3c3
2 changed files with 2 additions and 2 deletions

View File

@ -2252,7 +2252,7 @@ function script_concat_settings() {
function wp_common_block_scripts_and_styles() { function wp_common_block_scripts_and_styles() {
global $current_screen; 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; return;
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.