Changeset 10150
- Timestamp:
- 08/12/2020 10:40:50 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php
r10148 r10150 20 20 remove_action( 'wp_head', 'WordPressdotorg\Theme\hreflang_link_attributes' ); 21 21 } 22 23 22 add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); 23 24 /** 25 * Enqueue the CSS styles. 26 * 27 * The wporg theme does this with a static version, so we have to have it here too with our own cache-busting version. 28 * The version is set to the last modified time during development. 29 */ 30 function wporg_learn_styles() { 31 wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], filemtime( __DIR__ . '/css/style.css' ) ); 32 } 33 add_action( 'wp_enqueue_scripts', 'wporg_learn_styles' ); 24 34 25 35 /**
Note: See TracChangeset
for help on using the changeset viewer.