wp-content/themes/twentytwenty/classes/class-twentytwenty-script-loader.php:32Migrates legacy async/defer script data which might be used by child themes.
$to_dostring[]string[] public function migrate_legacy_strategy_script_data( $to_do ) { foreach ( $to_do as $handle ) { foreach ( array( 'async', 'defer' ) as $strategy ) { if ( wp_scripts()->get_data( $handle, $strategy ) ) { wp_script_add_data( $handle, 'strategy', $strategy ); } } } return $to_do; }Introduced in Twenty Twenty 2.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/classes/class-twentytwenty-script-loader.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.