Changeset 44249
- Timestamp:
- 12/17/2018 12:14:27 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/script-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43893-43894
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/script-loader.php
r44247 r44249 2471 2471 global $current_screen; 2472 2472 2473 if ( is_admin() && ! $current_screen->is_block_editor() ) {2473 if ( is_admin() && ( $current_screen instanceof WP_Screen ) && ! $current_screen->is_block_editor() ) { 2474 2474 return; 2475 2475 } … … 2505 2505 global $current_screen; 2506 2506 2507 $is_editor = ( is_admin() && $current_screen->is_block_editor() );2507 $is_editor = ( ( $current_screen instanceof WP_Screen ) && $current_screen->is_block_editor() ); 2508 2508 2509 2509 $block_registry = WP_Block_Type_Registry::get_instance();
Note: See TracChangeset
for help on using the changeset viewer.