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

    r45675 r45767  
    201201
    202202    // Loads our main stylesheet.
    203     wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
     203    wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri(), array(), '20190507' );
    204204
    205205    // Theme block stylesheet.
    206     wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' );
     206    wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20190406' );
    207207
    208208    // Loads the Internet Explorer specific stylesheet.
    209     wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
     209    wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20150214' );
    210210    $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
    211211}
     
    219219function twentytwelve_block_editor_styles() {
    220220    // Block styles.
    221     wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     221    wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190406' );
    222222    // Add custom fonts.
    223223    wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.