Make WordPress Core


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

    r45720 r45767  
    369369
    370370    // Load our main stylesheet.
    371     wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
     371    wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array(), '20190507' );
    372372
    373373    // Theme block stylesheet.
    374     wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181230' );
     374    wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20190102' );
    375375
    376376    // Load the Internet Explorer specific stylesheet.
    377     wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20141010' );
     377    wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20170916' );
    378378    wp_style_add_data( 'twentyfifteen-ie', 'conditional', 'lt IE 9' );
    379379
    380380    // Load the Internet Explorer 7 specific stylesheet.
    381     wp_enqueue_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141010' );
     381    wp_enqueue_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141210' );
    382382    wp_style_add_data( 'twentyfifteen-ie7', 'conditional', 'lt IE 8' );
    383383
     
    411411function twentyfifteen_block_editor_styles() {
    412412    // Block styles.
    413     wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     413    wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
    414414    // Add custom fonts.
    415415    wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.