- Timestamp:
- 10/07/2025 11:32:04 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/inc/template-functions.php
r60537 r60913 75 75 */ 76 76 function twenty_twenty_one_supports_js() { 77 echo '<script>document.body.classList.remove("no-js");</script>'; 77 $js = "document.body.classList.remove('no-js');"; 78 $js .= "\n//# sourceURL=" . rawurlencode( __FUNCTION__ ); 79 80 if ( function_exists( 'wp_print_inline_script_tag' ) ) { 81 wp_print_inline_script_tag( $js ); 82 } else { 83 echo "<script>$js</script>\n"; 84 } 78 85 } 79 86 add_action( 'wp_footer', 'twenty_twenty_one_supports_js' );
Note: See TracChangeset
for help on using the changeset viewer.