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

    r45675 r45767  
    712712function twentyten_scripts_styles() {
    713713    // Theme block stylesheet.
    714     wp_enqueue_style( 'twentyten-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' );
     714    wp_enqueue_style( 'twentyten-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181218' );
    715715}
    716716add_action( 'wp_enqueue_scripts', 'twentyten_scripts_styles' );
     
    723723function twentyten_block_editor_styles() {
    724724    // Block styles.
    725     wp_enqueue_style( 'twentyten-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' );
     725    wp_enqueue_style( 'twentyten-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20181218' );
    726726}
    727727add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
Note: See TracChangeset for help on using the changeset viewer.