WordPress.org

Make WordPress Core

Changeset 45767


Ignore:
Timestamp:
08/08/2019 01:24:32 AM (7 weeks 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.

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

Legend:

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

    r45675 r45767  
    295295function twentyeleven_scripts_styles() {
    296296    // Theme block stylesheet.
    297     wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181230' );
     297    wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20190102' );
    298298}
    299299add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
     
    306306function twentyeleven_block_editor_styles() {
    307307    // Block styles.
    308     wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20181230' );
     308    wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20190102' );
    309309}
    310310add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );
  • trunk/src/wp-content/themes/twentyeleven/header.php

    r45604 r45767  
    5050    </title>
    5151<link rel="profile" href="http://gmpg.org/xfn/11" />
    52 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
     52<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>?ver=20190507" />
    5353<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    5454<!--[if lt IE 9]>
  • trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php

    r45675 r45767  
    1818 */
    1919function twentyeleven_admin_enqueue_scripts( $hook_suffix ) {
    20     wp_enqueue_style( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '2011-04-28' );
     20    wp_enqueue_style( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '20110602' );
    2121    wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011-06-10' );
    2222    wp_enqueue_style( 'farbtastic' );
     
    420420
    421421    if ( 'dark' == $color_scheme ) {
    422         wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), null );
     422        wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), '20190404' );
    423423    }
    424424
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r45720 r45767  
    369369
    370370    // Load our main stylesheet.
    371     wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
     371    wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array(), '20190507' );
    372372
    373373    // Theme block stylesheet.
    374     wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181230' );
     374    wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20190102' );
    375375
    376376    // Load the Internet Explorer specific stylesheet.
    377     wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20141010' );
     377    wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20170916' );
    378378    wp_style_add_data( 'twentyfifteen-ie', 'conditional', 'lt IE 9' );
    379379
    380380    // Load the Internet Explorer 7 specific stylesheet.
    381     wp_enqueue_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141010' );
     381    wp_enqueue_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141210' );
    382382    wp_style_add_data( 'twentyfifteen-ie7', 'conditional', 'lt IE 8' );
    383383
     
    411411function twentyfifteen_block_editor_styles() {
    412412    // Block styles.
    413     wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     413    wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
    414414    // Add custom fonts.
    415415    wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null );
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r45675 r45767  
    318318
    319319    // Load our main stylesheet.
    320     wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
     320    wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20190507' );
    321321
    322322    // Theme block stylesheet.
    323     wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
     323    wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20190102' );
    324324
    325325    // Load the Internet Explorer specific stylesheet.
    326     wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' );
     326    wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20140701' );
    327327    wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
    328328
     
    397397function twentyfourteen_block_editor_styles() {
    398398    // Block styles.
    399     wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     399    wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
    400400    // Add custom fonts.
    401401    wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r45675 r45767  
    448448
    449449    // Theme stylesheet.
    450     wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri() );
     450    wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20190507' );
    451451
    452452    // Theme block stylesheet.
    453     wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' );
     453    wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20190105' );
    454454
    455455    // Load the dark colorscheme.
    456456    if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) {
    457         wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '1.0' );
     457        wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '20190408' );
    458458    }
    459459
    460460    // Load the Internet Explorer 9 specific stylesheet, to fix display issues in the Customizer.
    461461    if ( is_customize_preview() ) {
    462         wp_enqueue_style( 'twentyseventeen-ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'twentyseventeen-style' ), '1.0' );
     462        wp_enqueue_style( 'twentyseventeen-ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'twentyseventeen-style' ), '20161202' );
    463463        wp_style_add_data( 'twentyseventeen-ie9', 'conditional', 'IE 9' );
    464464    }
    465465
    466466    // Load the Internet Explorer 8 specific stylesheet.
    467     wp_enqueue_style( 'twentyseventeen-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'twentyseventeen-style' ), '1.0' );
     467    wp_enqueue_style( 'twentyseventeen-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'twentyseventeen-style' ), '20161202' );
    468468    wp_style_add_data( 'twentyseventeen-ie8', 'conditional', 'lt IE 9' );
    469469
     
    509509function twentyseventeen_block_editor_styles() {
    510510    // Block styles.
    511     wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '1.1' );
     511    wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20190328' );
    512512    // Add custom fonts.
    513513    wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
  • trunk/src/wp-content/themes/twentysixteen/functions.php

    r45675 r45767  
    369369
    370370    // Theme stylesheet.
    371     wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
     371    wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20190507' );
    372372
    373373    // Theme block stylesheet.
    374     wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );
     374    wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' );
    375375
    376376    // Load the Internet Explorer specific stylesheet.
    377     wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
     377    wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20170530' );
    378378    wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
    379379
    380380    // Load the Internet Explorer 8 specific stylesheet.
    381     wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160816' );
     381    wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20170530' );
    382382    wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );
    383383
    384384    // Load the Internet Explorer 7 specific stylesheet.
    385     wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160816' );
     385    wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20170530' );
    386386    wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );
    387387
     
    420420function twentysixteen_block_editor_styles() {
    421421    // Block styles.
    422     wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     422    wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
    423423    // Add custom fonts.
    424424    wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
  • 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' );
  • trunk/src/wp-content/themes/twentyten/header.php

    r45609 r45767  
    4040    </title>
    4141<link rel="profile" href="http://gmpg.org/xfn/11" />
    42 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
     42<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>?ver=20190507" />
    4343<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    4444<?php
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r45721 r45767  
    283283
    284284    // Loads our main stylesheet.
    285     wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' );
     285    wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '20190507' );
    286286
    287287    // Theme block stylesheet.
    288     wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-12-30' );
     288    wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '20190102' );
    289289
    290290    // Loads the Internet Explorer specific stylesheet.
    291     wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' );
     291    wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '20150214' );
    292292    wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
    293293}
     
    326326function twentythirteen_block_editor_styles() {
    327327    // Block styles.
    328     wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '2018-12-30' );
     328    wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
    329329    // Add custom fonts.
    330330    wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r45675 r45767  
    201201
    202202    // Loads our main stylesheet.
    203     wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
     203    wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri(), array(), '20190507' );
    204204
    205205    // Theme block stylesheet.
    206     wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' );
     206    wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20190406' );
    207207
    208208    // Loads the Internet Explorer specific stylesheet.
    209     wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
     209    wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20150214' );
    210210    $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
    211211}
     
    219219function twentytwelve_block_editor_styles() {
    220220    // Block styles.
    221     wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
     221    wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190406' );
    222222    // Add custom fonts.
    223223    wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
Note: See TracChangeset for help on using the changeset viewer.