WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/08/2019 01:28:26 AM (2 months 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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',
Note: See TracChangeset for help on using the changeset viewer.