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/twentyfourteen/functions.php

    r45675 r45767  
    318318
    319319    // Load our main stylesheet.
    320     wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
     320    wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20190507' );
    321321
    322322    // Theme block stylesheet.
    323     wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
     323    wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20190102' );
    324324
    325325    // Load the Internet Explorer specific stylesheet.
    326     wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' );
     326    wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20140701' );
    327327    wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
    328328
     
    397397function twentyfourteen_block_editor_styles() {
    398398    // Block styles.
    399     wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     399    wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
    400400    // Add custom fonts.
    401401    wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.