Making WordPress.org

Changeset 1319


Ignore:
Timestamp:
02/25/2015 08:40:47 AM (10 years ago)
Author:
dd32
Message:

Theme Directory: Don't use time() as a cache-bust, switch to filemtime() until launch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1296 r1319  
    6868    if ( ! is_singular( 'page' ) ) {
    6969        wp_enqueue_script( 'theme', self_admin_url( 'js/theme.js' ), array( 'wp-backbone' ), false, true );
    70         wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . '/js/theme.js', array( 'theme' ), time(), true );
     70        wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . '/js/theme.js', array( 'theme' ), filemtime( __DIR__ . '/js/theme.js' ), true );
    7171
    7272        wp_localize_script( 'theme', '_wpThemeSettings', array(
Note: See TracChangeset for help on using the changeset viewer.