wp-content/themes/twentytwentyone/functions.php:601Adds "is-IE" class to body if the user is on Internet Explorer.
voidfunction twentytwentyone_add_ie_class() { $script = " if ( -1 !== navigator.userAgent.indexOf('MSIE') || -1 !== navigator.appVersion.indexOf('Trident/') ) { document.body.classList.add('is-IE'); } "; $script .= '//# sourceURL=' . rawurlencode( __FUNCTION__ ); if ( function_exists( 'wp_print_inline_script_tag' ) ) { wp_print_inline_script_tag( $script ); } else { echo "<script>$script</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/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.