Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2012 04:35:21 AM (13 years ago)
Author:
johnjamesjacoby
Message:

First pass at replacing manual script versions with bp_get_version(). See #3992.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-adminbar.php

    r5465 r5751  
    5151function bp_core_load_admin_bar_css() {
    5252
    53     $version = '2011116';
    54 
    5553    if ( !bp_use_wp_admin_bar() || defined( 'DOING_AJAX' ) )
    5654        return;
     
    6260        $stylesheet = BP_PLUGIN_URL . 'bp-core/css/admin-bar.css';
    6361
    64     wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', $stylesheet ), array( 'admin-bar' ), $version );
     62    wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', $stylesheet ), array( 'admin-bar' ), bp_get_version() );
    6563
    6664    if ( !is_rtl() )
     
    7270        $stylesheet = BP_PLUGIN_URL . 'bp-core/css/admin-bar-rtl.css';
    7371
    74     wp_enqueue_style( 'bp-admin-bar-rtl', apply_filters( 'bp_core_admin_bar_rtl_css', $stylesheet ), array( 'bp-admin-bar' ), $version );
     72    wp_enqueue_style( 'bp-admin-bar-rtl', apply_filters( 'bp_core_admin_bar_rtl_css', $stylesheet ), array( 'bp-admin-bar' ), bp_get_version() );
    7573}
    7674add_action( 'bp_init', 'bp_core_load_admin_bar_css' );
Note: See TracChangeset for help on using the changeset viewer.