Ticket #45302: 45302.patch
| File 45302.patch, 749 bytes (added by , 8 years ago) |
|---|
-
src/wp-includes/script-loader.php
2284 2284 * @global WP_Screen $current_screen 2285 2285 */ 2286 2286 function wp_enqueue_registered_block_scripts_and_styles() { 2287 global $current_screen; 2287 $current_screen = get_current_screen(); 2288 $is_editor = $current_screen instanceof WP_Screen && $current_screen->is_block_editor(); 2288 2289 2289 $is_editor = ( is_admin() && $current_screen->is_block_editor() );2290 2291 2290 $block_registry = WP_Block_Type_Registry::get_instance(); 2292 2291 foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) { 2293 2292 // Front-end styles.