base ) { return true; } return $is_block_editor_screen; } add_filter( 'should_load_block_editor_scripts_and_styles', 'gutenberg_widgets_editor_load_block_editor_scripts_and_styles' ); /** * Show responsive embeds correctly on the widgets screen by adding the wp-embed-responsive class. * * @param string $classes existing admin body classes. * * @return string admin body classes including the wp-embed-responsive class. */ function gutenberg_widgets_editor_add_responsive_embed_body_class( $classes ) { return "$classes wp-embed-responsive"; } add_filter( 'admin_body_class', 'gutenberg_widgets_editor_add_responsive_embed_body_class' );