WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/08/2019 01:24:32 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Bundled Themes: Audit and update version numbers passed to wp_enqueue_style() to ensure proper cache busting.

Props dswebsme, ianbelanger, desrosj.
Fixes #46979.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r45675 r45767  
    448448
    449449    // Theme stylesheet.
    450     wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri() );
     450    wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20190507' );
    451451
    452452    // Theme block stylesheet.
    453     wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' );
     453    wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20190105' );
    454454
    455455    // Load the dark colorscheme.
    456456    if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) {
    457         wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '1.0' );
     457        wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '20190408' );
    458458    }
    459459
    460460    // Load the Internet Explorer 9 specific stylesheet, to fix display issues in the Customizer.
    461461    if ( is_customize_preview() ) {
    462         wp_enqueue_style( 'twentyseventeen-ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'twentyseventeen-style' ), '1.0' );
     462        wp_enqueue_style( 'twentyseventeen-ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'twentyseventeen-style' ), '20161202' );
    463463        wp_style_add_data( 'twentyseventeen-ie9', 'conditional', 'IE 9' );
    464464    }
    465465
    466466    // Load the Internet Explorer 8 specific stylesheet.
    467     wp_enqueue_style( 'twentyseventeen-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'twentyseventeen-style' ), '1.0' );
     467    wp_enqueue_style( 'twentyseventeen-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'twentyseventeen-style' ), '20161202' );
    468468    wp_style_add_data( 'twentyseventeen-ie8', 'conditional', 'lt IE 9' );
    469469
     
    509509function twentyseventeen_block_editor_styles() {
    510510    // Block styles.
    511     wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '1.1' );
     511    wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20190328' );
    512512    // Add custom fonts.
    513513    wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.