Changeset 43893
- Timestamp:
- 11/12/2018 11:37:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/script-loader.php
r43891 r43893 2253 2253 global $current_screen; 2254 2254 2255 if ( is_admin() && ! $current_screen->is_block_editor() ) {2255 if ( ( $current_screen instanceof WP_Screen ) && ! $current_screen->is_block_editor() ) { 2256 2256 return; 2257 2257 } … … 2287 2287 global $current_screen; 2288 2288 2289 $is_editor = ( is_admin() && $current_screen->is_block_editor() );2289 $is_editor = ( ( $current_screen instanceof WP_Screen ) && $current_screen->is_block_editor() ); 2290 2290 2291 2291 $block_registry = WP_Block_Type_Registry::get_instance();
Note: See TracChangeset
for help on using the changeset viewer.