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.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2018-11-13 00:24:07 +00:00
parent 9d9854594b
commit ff57e40a76

View File

@ -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;
}