Changeset 60913 for trunk/src/wp-content/themes/twentyfifteen/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/twentyfifteen/functions.php
r60521 r60913 413 413 */ 414 414 function twentyfifteen_javascript_detection() { 415 echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n"; 415 $js = "(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);"; 416 $js .= "\n//# sourceURL=" . rawurlencode( __FUNCTION__ ); 417 418 if ( function_exists( 'wp_print_inline_script_tag' ) ) { 419 wp_print_inline_script_tag( $js ); 420 } else { 421 echo "<script>$js</script>\n"; 422 } 416 423 } 417 424 add_action( 'wp_head', 'twentyfifteen_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)