Changeset 60913 for trunk/src/wp-content/themes/twentysixteen/functions.php
- Timestamp:
- 10/07/2025 11:32:04 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentysixteen/functions.php
r60527 r60913 374 374 */ 375 375 function twentysixteen_javascript_detection() { 376 echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n"; 376 $js = "(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);"; 377 $js .= "\n//# sourceURL=" . rawurlencode( __FUNCTION__ ); 378 379 if ( function_exists( 'wp_print_inline_script_tag' ) ) { 380 wp_print_inline_script_tag( $js ); 381 } else { 382 echo "<script>$js</script>\n"; 383 } 377 384 } 378 385 add_action( 'wp_head', 'twentysixteen_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)