WordPress.org

Make WordPress Core

Changeset 44434


Ignore:
Timestamp:
01/07/2019 06:39:03 PM (9 months 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:
10 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' );
  • branches/5.0/src/wp-content/themes/twentyfifteen/functions.php

    r44213 r44434  
    334334
    335335    // Theme block stylesheet.
    336     wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181018' );
     336    wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181230' );
    337337
    338338    // Load the Internet Explorer specific stylesheet.
     
    369369function twentyfifteen_block_editor_styles() {
    370370    // Block styles.
    371     wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     371    wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    372372    // Add custom fonts.
    373373    wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null );
  • branches/5.0/src/wp-content/themes/twentyfourteen/functions.php

    r44213 r44434  
    284284
    285285    // Theme block stylesheet.
    286     wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181018' );
     286    wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
    287287
    288288    // Load the Internet Explorer specific stylesheet.
     
    356356function twentyfourteen_block_editor_styles() {
    357357    // Block styles.
    358     wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     358    wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    359359    // Add custom fonts.
    360360    wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
  • branches/5.0/src/wp-content/themes/twentynineteen/functions.php

    r44202 r44434  
    223223
    224224    if ( has_nav_menu( 'menu-1' ) ) {
    225         wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '1.0', true );
    226         wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '1.0', true );
     225        wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '1.1', true );
     226        wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '1.1', true );
    227227    }
    228228
     
    258258function twentynineteen_editor_customizer_styles() {
    259259
    260     wp_enqueue_style( 'twentynineteen-editor-customizer-styles', get_theme_file_uri( '/style-editor-customizer.css' ), false, '1.0', 'all' );
     260    wp_enqueue_style( 'twentynineteen-editor-customizer-styles', get_theme_file_uri( '/style-editor-customizer.css' ), false, '1.1', 'all' );
    261261
    262262    if ( 'custom' === get_theme_mod( 'primary_color' ) ) {
  • branches/5.0/src/wp-content/themes/twentynineteen/inc/customizer.php

    r44187 r44434  
    126126 */
    127127function twentynineteen_customize_preview_js() {
    128     wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181108', true );
     128    wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181231', true );
    129129}
    130130add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' );
     
    134134 */
    135135function twentynineteen_panels_js() {
    136     wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181031', true );
     136    wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181231', true );
    137137}
    138138add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' );
  • 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 );
  • branches/5.0/src/wp-content/themes/twentysixteen/functions.php

    r44213 r44434  
    327327
    328328    // Theme block stylesheet.
    329     wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181018' );
     329    wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );
    330330
    331331    // Load the Internet Explorer specific stylesheet.
     
    355355    }
    356356
    357     wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160816', true );
     357    wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181230', true );
    358358
    359359    wp_localize_script( 'twentysixteen-script', 'screenReaderText', array(
     
    371371function twentysixteen_block_editor_styles() {
    372372    // Block styles.
    373     wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     373    wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    374374    // Add custom fonts.
    375375    wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
  • branches/5.0/src/wp-content/themes/twentythirteen/functions.php

    r44213 r44434  
    257257
    258258    // Theme block stylesheet.
    259     wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-10-18' );
     259    wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-12-30' );
    260260
    261261    // Loads the Internet Explorer specific stylesheet.
     
    297297function twentythirteen_block_editor_styles() {
    298298    // Block styles.
    299     wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     299    wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '2018-12-30' );
    300300    // Add custom fonts.
    301301    wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
  • branches/5.0/src/wp-content/themes/twentytwelve/functions.php

    r44213 r44434  
    191191
    192192    // Theme block stylesheet.
    193     wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181018' );
     193    wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' );
    194194
    195195    // Loads the Internet Explorer specific stylesheet.
     
    206206function twentytwelve_block_editor_styles() {
    207207    // Block styles.
    208     wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     208    wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    209209    // Add custom fonts.
    210210    wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.