WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/08/2019 01:24:32 AM (2 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/twentysixteen/functions.php

    r45675 r45767  
    369369
    370370    // Theme stylesheet.
    371     wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
     371    wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20190507' );
    372372
    373373    // Theme block stylesheet.
    374     wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );
     374    wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' );
    375375
    376376    // Load the Internet Explorer specific stylesheet.
    377     wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
     377    wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20170530' );
    378378    wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
    379379
    380380    // Load the Internet Explorer 8 specific stylesheet.
    381     wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160816' );
     381    wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20170530' );
    382382    wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );
    383383
    384384    // Load the Internet Explorer 7 specific stylesheet.
    385     wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160816' );
     385    wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20170530' );
    386386    wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );
    387387
     
    420420function twentysixteen_block_editor_styles() {
    421421    // Block styles.
    422     wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     422    wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
    423423    // Add custom fonts.
    424424    wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.