Making WordPress.org

Changeset 10150


Ignore:
Timestamp:
08/12/2020 10:40:50 AM (4 years ago)
Author:
dd32
Message:

WP.org Learn: Sync with GitHub.

https://github.com/WordPress/learn/commit/832e1008813367a813350ef4f74b8ce7f83de0ae

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php

    r10148 r10150  
    2020    remove_action( 'wp_head', 'WordPressdotorg\Theme\hreflang_link_attributes' );
    2121}
    22 
    2322add_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 */
     30function 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}
     33add_action( 'wp_enqueue_scripts', 'wporg_learn_styles' );
    2434
    2535/**
Note: See TracChangeset for help on using the changeset viewer.