Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/23/2011 02:47:55 PM (14 years ago)
Author:
djpaul
Message:

Set the unix date as the version identifier to script and style enqueues. See #3367

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r4775 r4816  
    135135 */
    136136function bp_dtheme_enqueue_scripts() {
    137     wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), BP_VERSION );
     137    wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), '20110723' );
    138138
    139139    // Add words that we need to use in JS to the end of the page so they can be translated and still used.
     
    164164
    165165    // Default CSS
    166     wp_enqueue_style( 'bp-default-main',  get_template_directory_uri() . '/_inc/css/default.css', array(), BP_VERSION );
     166    wp_enqueue_style( 'bp-default-main',  get_template_directory_uri() . '/_inc/css/default.css', array(), '20110723' );
    167167
    168168    // Right to left CSS
    169169    if ( is_rtl() )
    170         wp_enqueue_style( 'bp-default-main-rtl',  get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), BP_VERSION );
     170        wp_enqueue_style( 'bp-default-main-rtl',  get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), '20110723' );
    171171}
    172172add_action( 'wp_print_styles', 'bp_dtheme_enqueue_styles' );
Note: See TracChangeset for help on using the changeset viewer.