Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 09:50:52 PM (14 years ago)
Author:
djpaul
Message:

Add version number to all javascript/CSS enqueues to ensure the correct version is sent to the client regardless of caching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r3771 r3777  
    11901190function bp_core_update_add_admin_menu_styles() {
    11911191    if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    1192         wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( $path = '/buddypress' ) . '/bp-core/css/admin.dev.css' ) );
     1192        wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.dev.css' ), array(), BP_VERSION );
    11931193    else
    1194         wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( $path = '/buddypress' ) . '/bp-core/css/admin.css' ) );
     1194        wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.css' ), array(), BP_VERSION );
    11951195
    11961196    wp_enqueue_script( 'thickbox' );
Note: See TracChangeset for help on using the changeset viewer.