Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/07/2008 07:16:51 AM (18 years ago)
Author:
apeatling
Message:

Bug fixes:

  • Fixed group avatar upload issues
  • Fixed validation on group name/desc/news
  • Fixed support for https://
  • Base support for upcoming home theme and widgets
  • Re-factored JS and CSS inclusion with wp_enqueue_script/styles
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-cssjs.php

    r309 r373  
    88function friends_add_js() {
    99        global $bp;
    10        
    11         if ( !isset($_GET['page']) )
    12                 $_GET['page'] = null;
    1310
    14         if ( $bp['current_component'] == $bp['friends']['slug'] ) {
    15                 echo '
    16                         <script src="' . get_option('siteurl') . '/wp-content/mu-plugins/bp-friends/js/general.js" type="text/javascript"></script>';
    17         }
     11        if ( $bp['current_component'] == $bp['friends']['slug'] )
     12                wp_enqueue_script( 'bp-friends-js', site_url() . '/wp-content/mu-plugins/bp-friends/js/general.js' );
    1813}
    19 add_action( 'wp_head', 'friends_add_js' );
     14add_action( 'template_redirect', 'friends_add_js' );
    2015
    2116?>
Note: See TracChangeset for help on using the changeset viewer.