buddypress/0.1.5/bp-friends/bp-friends-cssjs.php
Andy Peatling 11057e7815 Tagging 0.1.5 bp-friends
git-svn-id: https://buddypress.svn.wordpress.org/tags/friends@412 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2008-10-23 14:29:41 +00:00

16 lines
No EOL
498 B
PHP

<?php
/**************************************************************************
friends_add_js()
Inserts the Javascript needed for managing friends.
**************************************************************************/
function friends_add_js() {
global $bp;
if ( $bp['current_component'] == $bp['friends']['slug'] )
wp_enqueue_script( 'bp-friends-js', site_url() . '/wp-content/mu-plugins/bp-friends/js/general.js' );
}
add_action( 'template_redirect', 'friends_add_js' );
?>