WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/21/2018 10:42:16 PM (11 months ago)
Author:
allancole
Message:

Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.

This update changes the following:

  • Add dynamic theme version to stylesheet enqueue.

Props grapplerulrich, kjellr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentynineteen/functions.php

    r43926 r43929  
    218218 */
    219219function twentynineteen_scripts() {
    220     wp_enqueue_style( 'twentynineteen-style', get_stylesheet_uri() );
     220    wp_enqueue_style( 'twentynineteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
    221221
    222222    wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' );
Note: See TracChangeset for help on using the changeset viewer.