Changeset 11449
- Timestamp:
- 01/17/2022 05:36:25 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r11431 r11449 237 237 238 238 /** 239 * Swaps out the no-js for the js body class if the browser supports Javascript. 240 */ 241 function nojs_body_tag() { 242 echo "<script>document.body.className = document.body.className.replace('no-js','js');</script>\n"; 243 } 244 add_action( 'wp_body_open', __NAMESPACE__ . '\nojs_body_tag' ); 245 246 /** 239 247 * Append an optimized site name. 240 248 *
Note: See TracChangeset
for help on using the changeset viewer.