- Timestamp:
- 10/07/2025 11:32:04 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/functions.php
r60533 r60913 407 407 */ 408 408 function twentyseventeen_javascript_detection() { 409 echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n"; 409 $js = "(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);"; 410 $js .= "\n//# sourceURL=" . rawurlencode( __FUNCTION__ ); 411 412 if ( function_exists( 'wp_print_inline_script_tag' ) ) { 413 wp_print_inline_script_tag( $js ); 414 } else { 415 echo "<script>$js</script>\n"; 416 } 410 417 } 411 418 add_action( 'wp_head', 'twentyseventeen_javascript_detection', 0 );
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)