wp-content/themes/twentytwenty/functions.php:225Registers and Enqueues Scripts.
function twentytwenty_register_scripts() { $theme_version = wp_get_theme()->get( 'Version' ); if ( ( ! is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } /* * This script is intentionally printed in the head because it involves the page header. The `defer` script loading * strategy ensures that it does not block rendering; being in the head it will start loading earlier so that it * will execute sooner once the DOM has loaded. The $args array is not used here to avoid unintentional footer * placement in WP<6.3; the wp_script_add_data() call is used instead. */ wp_enqueue_script( 'twentytwenty-js', get_template_directory_uri() . '/assets/js/index.js', array(), $theme_version ); wp_script_add_data( 'twentytwenty-js', 'strategy', 'defer' );}Introduced in Twenty Twenty 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentytwenty/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.