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

    r44409 r44434  
    426426
    427427    // Theme block stylesheet.
    428     wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.0' );
     428    wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' );
    429429
    430430    // Load the dark colorscheme.
     
    479479function twentyseventeen_block_editor_styles() {
    480480    // Block styles.
    481     wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ) );
     481    wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '1.1' );
    482482    // Add custom fonts.
    483483    wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.