WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2018 12:24:07 AM (11 months ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/script-loader.php

    r43893 r43894  
    22532253    global $current_screen;
    22542254
    2255     if ( ( $current_screen instanceof WP_Screen ) && ! $current_screen->is_block_editor() ) {
     2255    if ( is_admin() && ( $current_screen instanceof WP_Screen ) && ! $current_screen->is_block_editor() ) {
    22562256        return;
    22572257    }
Note: See TracChangeset for help on using the changeset viewer.