wp-content/themes/twentytwentyone/inc/template-functions.php:76Removes the no-js class from body if JS is supported.
voidfunction twenty_twenty_one_supports_js() { $js = "document.body.classList.remove('no-js');"; $js .= "\n//# sourceURL=" . rawurlencode( __FUNCTION__ ); if ( function_exists( 'wp_print_inline_script_tag' ) ) { wp_print_inline_script_tag( $js ); } else { echo "<script>$js</script>\n"; }}Introduced in Twenty Twenty-One 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/twentytwentyone/inc/template-functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.