add_action( 'wp_enqueue_scripts', 'twenty_twenty_one_scripts'
);
/**
* Enqueues block editor script.
*
* @since Twenty Twenty-One 1.0
*
* @return void
*/
function twentytwentyone_block_editor_script() { wp_enqueue_script( 'twentytwentyone-editor',
get_theme_file_uri( '/assets/js/editor.js'
), array
( 'wp-blocks', 'wp-dom'
),
wp_get_theme()->
get( 'Version'
), true
);
}add_action( 'enqueue_block_editor_assets', 'twentytwentyone_block_editor_script'
);
/**
* Fixes skip link focus in IE11.
*
* This does not enqueue the script because it is tiny and because it is only for IE11,
* thus it does not warrant having an entire dedicated blocking script being loaded.
*
* @since Twenty Twenty-One 1.0
* @deprecated Twenty Twenty-One 1.9 Removed from wp_print_footer_scripts action.
*
* @link https://git.io/vWdr2
*/