Make WordPress Core

Changeset 45768


Ignore:
Timestamp:
08/08/2019 01:28:26 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Bundled Themes: Audit and update version numbers passed to wp_enqueue_script() to ensure proper cache busting.

Props dswebsme, ianbelanger, justinahinon.
Fixes #46981.

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

Legend:

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

    r45767 r45768  
    5353<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    5454<!--[if lt IE 9]>
    55 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
     55<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script>
    5656<![endif]-->
    5757<?php
  • trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php

    r45767 r45768  
    1919function twentyeleven_admin_enqueue_scripts( $hook_suffix ) {
    2020        wp_enqueue_style( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '20110602' );
    21         wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011-06-10' );
     21        wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '20110610' );
    2222        wp_enqueue_style( 'farbtastic' );
    2323}
  • trunk/src/wp-content/themes/twentyeleven/showcase.php

    r45604 r45768  
    1717
    1818// Enqueue showcase script for the slider
    19 wp_enqueue_script( 'twentyeleven-showcase', get_template_directory_uri() . '/js/showcase.js', array( 'jquery' ), '2011-04-28' );
     19wp_enqueue_script( 'twentyeleven-showcase', get_template_directory_uri() . '/js/showcase.js', array( 'jquery' ), '20110429' );
    2020
    2121get_header(); ?>
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r45767 r45768  
    382382        wp_style_add_data( 'twentyfifteen-ie7', 'conditional', 'lt IE 8' );
    383383
    384         wp_enqueue_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20141010', true );
     384        wp_enqueue_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20141028', true );
    385385
    386386        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
     
    389389
    390390        if ( is_singular() && wp_attachment_is_image() ) {
    391                 wp_enqueue_script( 'twentyfifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20141010' );
    392         }
    393 
    394         wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true );
     391                wp_enqueue_script( 'twentyfifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20141210' );
     392        }
     393
     394        wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true );
    395395        wp_localize_script(
    396396                'twentyfifteen-script',
  • trunk/src/wp-content/themes/twentyfifteen/header.php

    r45042 r45768  
    1717        <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    1818        <!--[if lt IE 9]>
    19         <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
     19        <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0"></script>
    2020        <![endif]-->
    2121        <?php wp_head(); ?>
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r45767 r45768  
    332332
    333333        if ( is_singular() && wp_attachment_is_image() ) {
    334                 wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
     334                wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20150120' );
    335335        }
    336336
     
    340340
    341341        if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
    342                 wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true );
     342                wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', true );
    343343                wp_localize_script(
    344344                        'twentyfourteen-slider',
     
    351351        }
    352352
    353         wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true );
     353        wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true );
    354354}
    355355add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r45042 r45768  
    2626        <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    2727        <!--[if lt IE 9]>
    28         <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
     28        <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0"></script>
    2929        <![endif]-->
    3030        <?php wp_head(); ?>
  • trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php

    r45609 r45768  
    141141 */
    142142function twentyfourteen_customize_preview_js() {
    143         wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20131205', true );
     143        wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141015', true );
    144144}
    145145add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
  • trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php

    r45609 r45768  
    435435         */
    436436        public static function enqueue_scripts() {
    437                 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131022', true );
     437                wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131205', true );
    438438        }
    439439
  • trunk/src/wp-content/themes/twentynineteen/functions.php

    r44382 r45768  
    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.1', true );
    226                 wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '1.1', true );
     225                wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '20181214', true );
     226                wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '20181231', true );
    227227        }
    228228
  • trunk/src/wp-content/themes/twentynineteen/inc/customizer.php

    r44382 r45768  
    126126 */
    127127function twentynineteen_customize_preview_js() {
    128         wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181231', true );
     128        wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181214', 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(), '20181231', true );
     136        wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181214', true );
    137137}
    138138add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' );
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r45767 r45768  
    469469
    470470        // Load the html5 shiv.
    471         wp_enqueue_script( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), '3.7.3' );
     471        wp_enqueue_script( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), '20161020' );
    472472        wp_script_add_data( 'html5', 'conditional', 'lt IE 9' );
    473473
    474         wp_enqueue_script( 'twentyseventeen-skip-link-focus-fix', get_theme_file_uri( '/assets/js/skip-link-focus-fix.js' ), array(), '1.0', true );
     474        wp_enqueue_script( 'twentyseventeen-skip-link-focus-fix', get_theme_file_uri( '/assets/js/skip-link-focus-fix.js' ), array(), '20161114', true );
    475475
    476476        $twentyseventeen_l10n = array(
     
    479479
    480480        if ( has_nav_menu( 'top' ) ) {
    481                 wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '1.0', true );
     481                wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '20161203', true );
    482482                $twentyseventeen_l10n['expand']   = __( 'Expand child menu', 'twentyseventeen' );
    483483                $twentyseventeen_l10n['collapse'] = __( 'Collapse child menu', 'twentyseventeen' );
     
    490490        }
    491491
    492         wp_enqueue_script( 'twentyseventeen-global', get_theme_file_uri( '/assets/js/global.js' ), array( 'jquery' ), '1.0', true );
     492        wp_enqueue_script( 'twentyseventeen-global', get_theme_file_uri( '/assets/js/global.js' ), array( 'jquery' ), '20190121', true );
    493493
    494494        wp_enqueue_script( 'jquery-scrollto', get_theme_file_uri( '/assets/js/jquery.scrollTo.js' ), array( 'jquery' ), '2.1.2', true );
  • trunk/src/wp-content/themes/twentyseventeen/inc/customizer.php

    r43571 r45768  
    237237 */
    238238function twentyseventeen_customize_preview_js() {
    239         wp_enqueue_script( 'twentyseventeen-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview' ), '1.0', true );
     239        wp_enqueue_script( 'twentyseventeen-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview' ), '20161002', true );
    240240}
    241241add_action( 'customize_preview_init', 'twentyseventeen_customize_preview_js' );
     
    245245 */
    246246function twentyseventeen_panels_js() {
    247         wp_enqueue_script( 'twentyseventeen-customize-controls', get_theme_file_uri( '/assets/js/customize-controls.js' ), array(), '1.0', true );
     247        wp_enqueue_script( 'twentyseventeen-customize-controls', get_theme_file_uri( '/assets/js/customize-controls.js' ), array(), '20161020', true );
    248248}
    249249add_action( 'customize_controls_enqueue_scripts', 'twentyseventeen_panels_js' );
  • trunk/src/wp-content/themes/twentysixteen/functions.php

    r45767 r45768  
    390390        wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' );
    391391
    392         wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160816', true );
     392        wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20170530', true );
    393393
    394394        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
     
    397397
    398398        if ( is_singular() && wp_attachment_is_image() ) {
    399                 wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' );
    400         }
    401 
    402         wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181230', true );
     399                wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20170530' );
     400        }
     401
     402        wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181217', true );
    403403
    404404        wp_localize_script(
  • trunk/src/wp-content/themes/twentysixteen/inc/customizer.php

    r43571 r45768  
    485485 */
    486486function twentysixteen_customize_control_js() {
    487         wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20160816', true );
     487        wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20170530', true );
    488488        wp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() );
    489489}
     
    496496 */
    497497function twentysixteen_customize_preview_js() {
    498         wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20160816', true );
     498        wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20170530', true );
    499499}
    500500add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' );
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r45767 r45768  
    274274
    275275        // Loads JavaScript file with functionality specific to Twenty Thirteen.
    276         wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160717', true );
     276        wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true );
    277277
    278278        // Add Source Sans Pro and Bitter fonts, used in the main stylesheet.
  • trunk/src/wp-content/themes/twentythirteen/header.php

    r45042 r45768  
    2626        <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    2727        <!--[if lt IE 9]>
    28         <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
     28        <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0"></script>
    2929        <![endif]-->
    3030        <?php wp_head(); ?>
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r45767 r45768  
    193193
    194194        // Adds JavaScript for handling the navigation menu hide-and-show behavior.
    195         wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true );
     195        wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20141205', true );
    196196
    197197        $font_url = twentytwelve_get_font_url();
  • trunk/src/wp-content/themes/twentytwelve/header.php

    r45042 r45768  
    2727<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    2828<!--[if lt IE 9]>
    29 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
     29<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script>
    3030<![endif]-->
    3131<?php wp_head(); ?>
Note: See TracChangeset for help on using the changeset viewer.