Make WordPress Core

Changeset 44382


Ignore:
Timestamp:
01/02/2019 06:03:47 PM (6 years ago)
Author:
laurelfulford
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.

Fixes #45679.

Location:
trunk/src/wp-content/themes
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/functions.php

    r44313 r44382  
    293293function twentyeleven_scripts_styles() {
    294294    // Theme block stylesheet.
    295     wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' );
     295    wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181230' );
    296296}
    297297add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
     
    304304function twentyeleven_block_editor_styles() {
    305305    // Block styles.
    306     wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' );
     306    wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20181230' );
    307307}
    308308add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r44313 r44382  
    371371
    372372    // Theme block stylesheet.
    373     wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181018' );
     373    wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181230' );
    374374
    375375    // Load the Internet Explorer specific stylesheet.
     
    410410function twentyfifteen_block_editor_styles() {
    411411    // Block styles.
    412     wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     412    wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    413413    // Add custom fonts.
    414414    wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null );
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r44313 r44382  
    320320
    321321    // Theme block stylesheet.
    322     wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181018' );
     322    wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
    323323
    324324    // Load the Internet Explorer specific stylesheet.
     
    396396function twentyfourteen_block_editor_styles() {
    397397    // Block styles.
    398     wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     398    wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    399399    // Add custom fonts.
    400400    wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
  • trunk/src/wp-content/themes/twentynineteen/functions.php

    r44305 r44382  
    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' ) ) {
  • trunk/src/wp-content/themes/twentynineteen/inc/customizer.php

    r44298 r44382  
    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' );
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r44313 r44382  
    450450
    451451    // Theme block stylesheet.
    452     wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.0' );
     452    wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' );
    453453
    454454    // Load the dark colorscheme.
     
    508508function twentyseventeen_block_editor_styles() {
    509509    // Block styles.
    510     wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ) );
     510    wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '1.1' );
    511511    // Add custom fonts.
    512512    wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
  • trunk/src/wp-content/themes/twentysixteen/functions.php

    r44313 r44382  
    371371
    372372    // Theme block stylesheet.
    373     wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181018' );
     373    wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );
    374374
    375375    // Load the Internet Explorer specific stylesheet.
     
    399399    }
    400400
    401     wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160816', true );
     401    wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181230', true );
    402402
    403403    wp_localize_script(
     
    419419function twentysixteen_block_editor_styles() {
    420420    // Block styles.
    421     wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     421    wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    422422    // Add custom fonts.
    423423    wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r44313 r44382  
    284284
    285285    // Theme block stylesheet.
    286     wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-10-18' );
     286    wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-12-30' );
    287287
    288288    // Loads the Internet Explorer specific stylesheet.
     
    324324function twentythirteen_block_editor_styles() {
    325325    // Block styles.
    326     wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     326    wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '2018-12-30' );
    327327    // Add custom fonts.
    328328    wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r44313 r44382  
    201201
    202202    // Theme block stylesheet.
    203     wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181018' );
     203    wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' );
    204204
    205205    // Loads the Internet Explorer specific stylesheet.
     
    216216function twentytwelve_block_editor_styles() {
    217217    // Block styles.
    218     wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     218    wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
    219219    // Add custom fonts.
    220220    wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.