- Timestamp:
- 10/07/2025 11:32:04 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r60536 r60913 661 661 */ 662 662 function twentytwenty_no_js_class() { 663 664 ?> 665 <script>document.documentElement.className = document.documentElement.className.replace( 'no-js', 'js' );</script> 666 <?php 663 $js = "document.documentElement.className = document.documentElement.className.replace( 'no-js', 'js' );"; 664 $js .= "\n//# sourceURL=" . rawurlencode( __FUNCTION__ ); 665 666 if ( function_exists( 'wp_print_inline_script_tag' ) ) { 667 wp_print_inline_script_tag( $js ); 668 } else { 669 echo "<script>$js</script>\n"; 670 } 667 671 } 668 672
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)