mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
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:
parent
9d9854594b
commit
ff57e40a76
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user