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-xprofile/bp-xprofile-cssjs.php

    r3713 r3777  
    33    if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) {
    44        if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    5             wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.dev.css' );
     5            wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.dev.css', array(), BP_VERSION );
    66        else
    7             wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css' );
     7            wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css', array(), BP_VERSION );
    88    }
    99}
     
    2020
    2121        if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    22             wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.dev.js', array( 'jquery', 'jquery-ui-sortable' ) );
     22            wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.dev.js', array( 'jquery', 'jquery-ui-sortable' ), BP_VERSION );
    2323        else
    24             wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery', 'jquery-ui-sortable' ) );
     24            wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery', 'jquery-ui-sortable' ), BP_VERSION );
    2525    }
    2626}
Note: See TracChangeset for help on using the changeset viewer.