Changeset 11529 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
- Timestamp:
- 02/08/2022 07:19:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r11496 r11529 21 21 add_action( 'after_setup_theme', 'wporg_support_theme_support' ); 22 22 23 24 23 /** 25 24 * Swaps out the no-js for the js body class if the browser supports Javascript. 26 25 */ 27 26 function nojs_body_tag() { 28 27 echo "<script>document.body.className = document.body.className.replace('no-js','js');</script>\n"; 29 28 } 30 29 add_action( 'wp_body_open', __NAMESPACE__ . '\nojs_body_tag' ); 31 32 30 33 31 /** … … 39 37 function wporg_support_scripts() { 40 38 41 wp_enqueue_style( 'forum-wp4-style', get_stylesheet_uri(), [ ], '20220110');39 wp_enqueue_style( 'forum-wp4-style', get_stylesheet_uri(), [ 'dashicons' ], filemtime( __DIR__ . '/style.css' ) ); 42 40 wp_style_add_data( 'forum-wp4-style', 'rtl', 'replace' ); 43 41
Note: See TracChangeset
for help on using the changeset viewer.