Make WordPress Core


Ignore:
Timestamp:
01/07/2019 06:39:03 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Bundled Themes: Bump script and style version numbers.

When existing scripts or styles are updated in default themes, the version numbers in the enqueues should also be bumped to make sure the old files don't cache. This update bumps version numbers for changes since version 5.0, for themes Twenty Eleven through Twenty Nineteen.

Props laurelfulford.
Merges [44382] to the 5.0 branch.
Fixes #45679.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-content/themes/twentyeleven/functions.php

    r44213 r44434  
    283283function twentyeleven_scripts_styles() {
    284284    // Theme block stylesheet.
    285     wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' );
     285    wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181230' );
    286286}
    287287add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
     
    294294function twentyeleven_block_editor_styles() {
    295295    // Block styles.
    296     wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' );
     296    wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20181230' );
    297297}
    298298add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );
Note: See TracChangeset for help on using the changeset viewer.