Index: bp-themes/bp-default/groups/single/forum/topic.php
===================================================================
--- bp-themes/bp-default/groups/single/forum/topic.php	(revision 4960)
+++ bp-themes/bp-default/groups/single/forum/topic.php	(working copy)
@@ -23,15 +23,15 @@
 
 		<div id="topic-meta">
 			<h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3>
-			
+
 			<?php if ( bp_forum_topic_has_tags() ) : ?>
-				
+
 				<div class="topic-tags">
-				
+
 					<?php _e( 'Topic tags:', 'buddypress' ) ?> <?php bp_forum_topic_tag_list() ?>
-				
+
 				</div>
-				
+
 			<?php endif; ?>
 
 			<?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
Index: bp-themes/bp-default/groups/single/forum/edit.php
===================================================================
--- bp-themes/bp-default/groups/single/forum/edit.php	(revision 4960)
+++ bp-themes/bp-default/groups/single/forum/edit.php	(working copy)
@@ -51,7 +51,7 @@
 
 					<label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label>
 					<textarea name="topic_text" id="topic_text"><?php bp_the_topic_text(); ?></textarea>
-					
+
 					<label><?php _e( 'Tags (comma separated):', 'buddypress' ) ?></label>
 					<input type="text" name="topic_tags" id="topic_tags" value="<?php bp_forum_topic_tag_list() ?>" />
 
Index: bp-themes/bp-default/groups/single/home.php
===================================================================
--- bp-themes/bp-default/groups/single/home.php	(revision 4960)
+++ bp-themes/bp-default/groups/single/home.php	(working copy)
@@ -38,7 +38,7 @@
 				elseif ( bp_is_group_invites() && bp_group_is_visible() ) :
 					locate_template( array( 'groups/single/send-invites.php' ), true );
 
-					elseif ( bp_is_group_forum() && bp_group_is_visible() && bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() ) : 
+					elseif ( bp_is_group_forum() && bp_group_is_visible() && bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() ) :
 						locate_template( array( 'groups/single/forum.php' ), true );
 
 				elseif ( bp_is_group_membership_request() ) :
Index: bp-themes/bp-default/groups/create.php
===================================================================
--- bp-themes/bp-default/groups/create.php	(revision 4960)
+++ bp-themes/bp-default/groups/create.php	(working copy)
@@ -107,30 +107,30 @@
 					</div>
 
 					<hr />
-					
-					<h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4> 
 
-					<p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ) ?></p> 
-				
-					<div class="radio"> 
-						<label> 
-							<input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ) ?> /> 
-							<strong><?php _e( 'All group members', 'buddypress' ) ?></strong> 
-						</label> 
-				
-						<label> 
-							<input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ) ?> /> 
-							<strong><?php _e( 'Group admins and mods only', 'buddypress' ) ?></strong> 
+					<h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
+
+					<p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ) ?></p>
+
+					<div class="radio">
+						<label>
+							<input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ) ?> />
+							<strong><?php _e( 'All group members', 'buddypress' ) ?></strong>
 						</label>
-						
-						<label> 
-							<input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ) ?> /> 
-							<strong><?php _e( 'Group admins only', 'buddypress' ) ?></strong> 
-						</label> 
-					</div> 
-				
-					<hr /> 
 
+						<label>
+							<input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ) ?> />
+							<strong><?php _e( 'Group admins and mods only', 'buddypress' ) ?></strong>
+						</label>
+
+						<label>
+							<input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ) ?> />
+							<strong><?php _e( 'Group admins only', 'buddypress' ) ?></strong>
+						</label>
+					</div>
+
+					<hr />
+
 					<?php do_action( 'bp_after_group_settings_creation_step' ); ?>
 
 					<?php wp_nonce_field( 'groups_create_save_group-settings' ); ?>
Index: bp-themes/bp-default/members/single/activity.php
===================================================================
--- bp-themes/bp-default/members/single/activity.php	(revision 4960)
+++ bp-themes/bp-default/members/single/activity.php	(working copy)
@@ -15,7 +15,7 @@
 		<?php bp_get_options_nav() ?>
 
 		<li id="activity-filter-select" class="last">
-			<label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label> 
+			<label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
 			<select id="activity-filter-by">
 				<option value="-1"><?php _e( 'Everything', 'buddypress' ) ?></option>
 				<option value="activity_update"><?php _e( 'Updates', 'buddypress' ) ?></option>
Index: bp-themes/bp-default/members/single/forums/topics.php
===================================================================
--- bp-themes/bp-default/members/single/forums/topics.php	(revision 4960)
+++ bp-themes/bp-default/members/single/forums/topics.php	(working copy)
@@ -1,5 +1,5 @@
 <?php
-/* 
+/*
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
Index: bp-themes/bp-default/members/single/home.php
===================================================================
--- bp-themes/bp-default/members/single/home.php	(revision 4960)
+++ bp-themes/bp-default/members/single/home.php	(working copy)
@@ -37,7 +37,7 @@
 			<div id="item-body">
 
 				<?php do_action( 'bp_before_member_body' );
-				
+
 				if ( bp_is_user_activity() || !bp_current_component() ) :
 					locate_template( array( 'members/single/activity.php' ), true );
 
Index: bp-themes/bp-default/activity/entry.php
===================================================================
--- bp-themes/bp-default/activity/entry.php	(revision 4960)
+++ bp-themes/bp-default/activity/entry.php	(working copy)
@@ -90,7 +90,7 @@
 	<?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_activity_get_comment_count() ) : ?>
 
 		<div class="activity-comments">
-			
+
 			<?php bp_activity_comments(); ?>
 
 			<?php if ( is_user_logged_in() ) : ?>
Index: bp-themes/bp-default/activity/comment.php
===================================================================
--- bp-themes/bp-default/activity/comment.php	(revision 4960)
+++ bp-themes/bp-default/activity/comment.php	(working copy)
@@ -9,7 +9,7 @@
  * @package BuddyPress
  * @subpackage bp-default
  */
- 
+
 ?>
 
 <?php do_action( 'bp_before_activity_comment' ); ?>
Index: bp-themes/bp-default/index.php
===================================================================
--- bp-themes/bp-default/index.php	(revision 4960)
+++ bp-themes/bp-default/index.php	(working copy)
@@ -4,7 +4,7 @@
 		<div class="padder">
 
 		<?php do_action( 'bp_before_blog_home' ) ?>
-		
+
 		<?php do_action( 'template_notices' ) ?>
 
 		<div class="page" id="blog-latest" role="main">
Index: bp-themes/bp-default/_inc/css/default-rtl.css
===================================================================
--- bp-themes/bp-default/_inc/css/default-rtl.css	(revision 4960)
+++ bp-themes/bp-default/_inc/css/default-rtl.css	(working copy)
@@ -1,6 +1,6 @@
 /*--------------------------------------------------------------
 Hello, this is the BuddyPress Default rtl stylesheet.
-Right to left styles. This will transform the theme to read from 
+Right to left styles. This will transform the theme to read from
 right to left for languages that support this method.
 ----------------------------------------------------------------
 >>> TABLE OF CONTENTS:
@@ -33,7 +33,7 @@
 	5.6 - Forms
 	5.7 - Topics and Tables - Forums and General
 	5.8 - Headers, Lists and Tabs - Activity, Groups, Blogs, Forums
-	5.9 - Private Messaging Threads	
+	5.9 - Private Messaging Threads
 --------------------------------------------------------------*/
 /*--------------------------------------------------------------
 1.0 - Structure
@@ -238,9 +238,9 @@
 	margin-right: 5px;
 	float: right;
 }
-#nav li li { 
+#nav li li {
 	margin-left: auto;
-	margin-right: 0; 
+	margin-right: 0;
 }
 #nav ul,
 #nav .sfhover ul ul,
Index: bp-themes/bp-default/_inc/css/default.css
===================================================================
--- bp-themes/bp-default/_inc/css/default.css	(revision 4960)
+++ bp-themes/bp-default/_inc/css/default.css	(working copy)
@@ -1306,7 +1306,7 @@
 	-webkit-border-radius: 3px;
 	border-radius: 3px;
 	color: #fff;
-	font-size: 90%; 
+	font-size: 90%;
 	margin-left: 2px;
 	padding: 0 5px;
 }
@@ -2187,13 +2187,13 @@
 	text-decoration: none;
 }
 div.item-list-tabs ul li a span {
-	background: #1fb3dd; 
+	background: #1fb3dd;
 	-moz-border-radius: 3px;
 	-webkit-border-radius: 3px;
 	border-radius: 3px;
 	color: #fff;
 	display: inline;
-	font-size: 90%; 
+	font-size: 90%;
 	margin-left: 2px;
 	padding: 1px 6px;
 }
Index: bp-themes/bp-default/_inc/global.js
===================================================================
--- bp-themes/bp-default/_inc/global.js	(revision 4960)
+++ bp-themes/bp-default/_inc/global.js	(working copy)
@@ -928,7 +928,7 @@
 					var inboxcount = jq('tr.unread').length;
 
 					jq('a#user-messages span').html( inboxcount );
-					
+
 					if ( i != checkboxes.length - 1 ) {
 						checkboxes_tosend += ','
 					}
Index: bp-xprofile/bp-xprofile-loader.php
===================================================================
--- bp-xprofile/bp-xprofile-loader.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-loader.php	(working copy)
@@ -231,4 +231,4 @@
 if ( !isset( $bp->profile->id ) )
 	$bp->profile = new BP_XProfile_Component();
 
-?>
+?>
\ No newline at end of file
Index: bp-xprofile/bp-xprofile-filters.php
===================================================================
--- bp-xprofile/bp-xprofile-filters.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-filters.php	(working copy)
@@ -97,7 +97,7 @@
 			$kses_field_value       = xprofile_filter_kses( $value );
 			$filtered_value 	= wp_rel_nofollow( force_balance_tags( $kses_field_value ) );
 			$filtered_values[] = apply_filters( 'xprofile_filtered_data_value_before_save', $filtered_value, $value );
-			
+
 		}
 
 		if ( $reserialize )
@@ -180,4 +180,4 @@
 }
 add_filter( 'comments_array', 'xprofile_filter_comments', 10, 2 );
 
-?>
+?>
\ No newline at end of file
Index: bp-xprofile/bp-xprofile-template.php
===================================================================
--- bp-xprofile/bp-xprofile-template.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-template.php	(working copy)
@@ -195,7 +195,7 @@
 }
 	function bp_get_field_css_class( $class = false ) {
 		global $profile_template;
-		
+
 		$css_classes = array();
 
 		if ( $class )
@@ -709,7 +709,7 @@
 	function bp_get_profile_group_name() {
 		if ( !$group_id = bp_action_variable( 1 ) )
 			$group_id = 1;
-			
+
 		if ( !is_numeric( $group_id ) )
 			$group_id = 1;
 
Index: bp-xprofile/bp-xprofile-activity.php
===================================================================
--- bp-xprofile/bp-xprofile-activity.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-activity.php	(working copy)
@@ -115,7 +115,7 @@
  */
 function bp_xprofile_new_avatar_activity() {
 	global $bp;
-	
+
 	if ( !bp_is_active( 'activity' ) )
 		return false;
 
Index: bp-xprofile/bp-xprofile-classes.php
===================================================================
--- bp-xprofile/bp-xprofile-classes.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-classes.php	(working copy)
@@ -167,10 +167,10 @@
 
 			if ( !empty( $field_ids ) )
 				$field_data = $wpdb->get_results( $wpdb->prepare( "SELECT field_id, value FROM {$bp->profile->table_name_data} WHERE field_id IN ( {$field_ids_sql} ) AND user_id = %d", $user_id ) );
-				
+
 			// Remove data-less fields, if necessary
 			if ( $hide_empty_fields ) {
-			
+
 				// Loop through the results and find the fields that have data.
 				foreach( (array)$field_data as $data ) {
 					if ( false !== $key = array_search( $data->field_id, $field_ids ) ) {
@@ -178,33 +178,33 @@
 						unset( $field_ids[$key] );
 					}
 				}
-				
+
 				// The remaining members of $field_ids are empty. Remove them.
 				foreach( $fields as $field_key => $field ) {
 					if ( in_array( $field->id, $field_ids ) ) {
 						unset( $fields[$field_key] );
 					}
 				}
-				
+
 				// Reset indexes
 				$fields = array_values( $fields );
-				
+
 			}
-			
+
 			// Field data was found
 			if ( !empty( $field_data ) && !is_wp_error( $field_data ) ) {
-				
+
 				// Loop through fields
 				foreach( (array)$fields as $field_key => $field ) {
-					
+
 					// Loop throught the data in each field
 					foreach( (array)$field_data as $data ) {
-					
+
 						// Assign correct data value to the field
 						if ( $field->id == $data->field_id )
 							$fields[$field_key]->data->value = $data->value;
-					}	
-				}	
+					}
+				}
 			}
 		}
 
@@ -214,13 +214,13 @@
 				if ( $group->id == $field->group_id )
 					$groups[$group_key]->fields[] = $field;
 			}
-			
+
 			// When we unset fields above, we may have created empty groups.
 			// Remove them, if necessary.
 			if ( empty( $group->fields ) && $hide_empty_groups ) {
 				unset( $groups[$group_key] );
 			}
-			
+
 			// Reset indexes
 			$groups = array_values( $groups );
 		}
@@ -327,11 +327,11 @@
 	var $data;
 	var $message = null;
 	var $message_type = 'err';
-	
+
 	function bp_xprofile_field( $id = null, $user_id = null, $get_data = true ) {
 		$this->__construct( $id, $user_id, $get_data );
 	}
-	
+
 	function __construct( $id = null, $user_id = null, $get_data = true ) {
 		if ( $id )
 			$this->populate( $id, $user_id, $get_data );
@@ -793,11 +793,11 @@
 	var $field_id;
 	var $value;
 	var $last_updated;
-	
+
 	function bp_xprofile_profiledata( $field_id = null, $user_id = null ) {
-		$this->__construct( $field_id, $user_id );		
+		$this->__construct( $field_id, $user_id );
 	}
-	
+
 	function __construct( $field_id = null, $user_id = null ) {
 		if ( $field_id )
 			$this->populate( $field_id, $user_id );
Index: bp-xprofile/bp-xprofile-actions.php
===================================================================
--- bp-xprofile/bp-xprofile-actions.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-actions.php	(working copy)
@@ -22,7 +22,7 @@
  */
 function xprofile_action_delete_avatar() {
 	global $bp;
-	
+
 	if ( !bp_is_current_component( 'profile' ) || !bp_is_current_action( 'change-avatar' ) || !bp_is_action_variable( 'delete-avatar', 0 ) )
 		return false;
 
@@ -41,4 +41,4 @@
 }
 add_action( 'bp_actions', 'xprofile_action_delete_avatar' );
 
-?>
+?>
\ No newline at end of file
Index: bp-xprofile/bp-xprofile-screens.php
===================================================================
--- bp-xprofile/bp-xprofile-screens.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-screens.php	(working copy)
@@ -14,7 +14,7 @@
  * @package BuddyPress XProfile
  * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename)
  */
-function xprofile_screen_display_profile() {	
+function xprofile_screen_display_profile() {
 	$new = isset( $_GET['new'] ) ? $_GET['new'] : '';
 
 	do_action( 'xprofile_screen_display_profile', $new );
@@ -174,4 +174,4 @@
 	bp_core_load_template( apply_filters( 'xprofile_template_change_avatar', 'members/single/home' ) );
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-xprofile/bp-xprofile-cache.php
===================================================================
--- bp-xprofile/bp-xprofile-cache.php	(revision 4960)
+++ bp-xprofile/bp-xprofile-cache.php	(working copy)
@@ -27,4 +27,4 @@
 // List actions to clear super cached pages on, if super cache is installed
 add_action( 'xprofile_updated_profile', 'bp_core_clear_cache' );
 
-?>
+?>
\ No newline at end of file
Index: bp-core/bp-core-loader.php
===================================================================
--- bp-core/bp-core-loader.php	(revision 4960)
+++ bp-core/bp-core-loader.php	(working copy)
@@ -24,7 +24,7 @@
 	require( BP_PLUGIN_DIR . '/bp-core/bp-core-adminbar.php'  );
 
 // Move active components from sitemeta, if necessary
-// Provides backpat with earlier versions of BP 
+// Provides backpat with earlier versions of BP
 if ( is_multisite() && $active_components = get_site_option( 'bp-active-components' ) )
 	bp_update_option( 'bp-active-components', $active_components );
 
Index: bp-core/bp-core-filters.php
===================================================================
--- bp-core/bp-core-filters.php	(revision 4960)
+++ bp-core/bp-core-filters.php	(working copy)
@@ -76,7 +76,7 @@
 	if ( $wpdb->blogid == bp_get_root_blog_id() ) {
 		$themes['bp-default'] = 1;
 	}
-	
+
 	return $themes;
 }
 add_filter( 'allowed_themes', 'bp_core_allow_default_theme' );
@@ -278,7 +278,7 @@
 	// Displayed user
 	if ( !empty( $bp->displayed_user->fullname ) && !is_404() ) {
 		// translators: "displayed user's name | canonicalised component name"
-		$title = strip_tags( sprintf( __( '%1$s | %2$s', 'buddypress' ), bp_get_displayed_user_fullname(), ucwords( bp_current_component() ) ) ); 
+		$title = strip_tags( sprintf( __( '%1$s | %2$s', 'buddypress' ), bp_get_displayed_user_fullname(), ucwords( bp_current_component() ) ) );
 
 	// A single group
 	} elseif ( bp_is_active( 'groups' ) && !empty( $bp->groups->current_group ) && !empty( $bp->bp_options_nav[$bp->groups->current_group->slug] ) ) {
@@ -313,7 +313,7 @@
 	// Blog creation page
 	} elseif ( bp_is_create_blog() ) {
 		$title = __( 'Create a Site', 'buddypress' );
-	}	
+	}
 
 	// Some BP nav items contain item counts. Remove them
 	$title = preg_replace( '|<span>[0-9]+</span>|', '', $title );
Index: bp-core/bp-core-functions.php
===================================================================
--- bp-core/bp-core-functions.php	(revision 4960)
+++ bp-core/bp-core-functions.php	(working copy)
@@ -129,7 +129,7 @@
  */
 function bp_core_get_directory_pages() {
 	global $wpdb, $bp;
-	
+
 	// Set pages as standard class
 	$pages = new stdClass;
 
@@ -978,10 +978,10 @@
  */
 function bp_core_get_root_options() {
 	global $wpdb;
-	
+
 	// These options come from the root blog options table
 	$root_blog_options = apply_filters( 'bp_core_site_options', array(
-	
+
 	// BuddyPress core settings
 	'bp-deactivated-components'       => serialize( array( ) ),
 	'bp-blogs-first-install'          => '0',
@@ -994,17 +994,17 @@
 	'bp-disable-blogforum-comments'   => '0',
 	'bb-config-location'              => ABSPATH,
 	'hide-loggedout-adminbar'         => '0',
-	
+
 	// Useful WordPress settings
 	'registration'                    => '0',
 	'avatar_default'                  => 'mysteryman'
 	) );
-	
+
 	$root_blog_option_keys  = array_keys( $root_blog_options );
 	$blog_options_keys      = implode( "', '", (array) $root_blog_option_keys );
 	$blog_options_query     = sprintf( "SELECT option_name AS name, option_value AS value FROM {$wpdb->options} WHERE option_name IN ('%s')", $blog_options_keys );
 	$root_blog_options_meta = $wpdb->get_results( $blog_options_query );
-	
+
 	// On Multisite installations, some options must always be fetched from sitemeta
 	if ( is_multisite() ) {
 		$network_options = apply_filters( 'bp_core_network_options', array(
@@ -1012,55 +1012,55 @@
 			'registration'    => '0',
 			'fileupload_maxk' => '1500'
 		) );
-		
+
 		$network_option_keys    = array_keys( $network_options );
 		$sitemeta_options_keys  = implode( "','", (array) $network_option_keys );
 		$sitemeta_options_query = sprintf( "SELECT meta_key AS name, meta_value AS value FROM {$wpdb->sitemeta} WHERE meta_key IN ('%s')", $sitemeta_options_keys );
 		$network_options_meta   = $wpdb->get_results( $sitemeta_options_query );
-		
+
 		// Sitemeta comes second in the merge, so that network 'registration' value wins
 		$root_blog_options_meta = array_merge( $root_blog_options_meta, $network_options_meta );
 	}
-	
+
 	// Missing some options, so do some one-time fixing
 	if ( empty( $root_blog_options_meta ) || ( count( $root_blog_options_meta ) < count( $root_blog_option_keys ) ) ) {
-	
+
 	// Unset the query - We'll be resetting it soon
 	unset( $root_blog_options_meta );
-	
+
 	// Loop through options
 	foreach ( $root_blog_options as $old_meta_key => $old_meta_default ) {
 		// Clear out the value from the last time around
 		unset( $old_meta_value );
-		
+
 		// Get old site option
 		if ( is_multisite() )
 			$old_meta_value = get_site_option( $old_meta_key );
-		
+
 		// No site option so look in root blog
 		if ( empty( $old_meta_value ) )
 			$old_meta_value = bp_get_option( $old_meta_key, $old_meta_default );
-		
+
 		// Update the root blog option
 		bp_update_option( $old_meta_key, $old_meta_value );
-		
+
 		// Update the global array
 		$root_blog_options_meta[$old_meta_key] = $old_meta_value;
 	}
-	
+
 	// We're all matched up
 	} else {
 		// Loop through our results and make them usable
 		foreach ( $root_blog_options_meta as $root_blog_option )
 			$root_blog_options[$root_blog_option->name] = $root_blog_option->value;
-		
+
 		// Copy the options no the return val
 		$root_blog_options_meta = $root_blog_options;
-		
+
 		// Clean up our temporary copy
 		unset( $root_blog_options );
 	}
-	
+
 	return apply_filters( 'bp_core_get_root_options', $root_blog_options_meta );
 }
 
@@ -1090,7 +1090,7 @@
 	if ( empty( $match ) ) {
 		$bp->add_root[] = $slug;
 	}
-	
+
 	// Make sure that this component is registered as requiring a top-level directory
 	if ( isset( $bp->{$slug} ) ) {
 		$bp->loaded_components[$bp->{$slug}->slug] = $bp->{$slug}->id;
@@ -1464,4 +1464,4 @@
 	if ( 'remove_canonical_direct' == $redirect )
 		remove_action( 'template_redirect', 'redirect_canonical' );
 }
-?>
+?>
\ No newline at end of file
Index: bp-core/bp-core-template.php
===================================================================
--- bp-core/bp-core-template.php	(revision 4960)
+++ bp-core/bp-core-template.php	(working copy)
@@ -494,9 +494,9 @@
  */
 function bp_action_variable( $position = 0 ) {
 	$action_variables = bp_action_variables();
-	
+
 	$action_variable = isset( $action_variables[$position] ) ? $action_variables[$position] : false;
-	
+
 	return apply_filters( 'bp_action_variable', $action_variable, $position );
 }
 
@@ -668,7 +668,7 @@
 		// Because slugs can differ from root_slugs, we should check them too
 		} elseif ( isset( $bp->{$component}->slug ) && $bp->{$component}->slug == $bp->current_component ) {
 			$is_current_component = true;
-			
+
 		// Next, check to see whether $component is a canonical,
 		// non-translatable component name. If so, we can return its
 		// corresponding slug from $bp->active_components.
@@ -676,7 +676,7 @@
 			if ( strstr( $bp->current_component, $key ) )
 				$is_current_component = true;
 
-		// If we haven't found a match yet, check against the root_slugs 
+		// If we haven't found a match yet, check against the root_slugs
 		// created by $bp->pages, as well as the regular slugs
 		} else {
 			foreach ( $bp->active_components as $key => $id ) {
@@ -751,13 +751,13 @@
  * @param int $position The array key you're testing against. If you don't provide a $position,
  *   the function will return true if the $action_variable is found *anywhere* in the action
  *   variables array.
- * @return bool 
+ * @return bool
  */
 function bp_is_action_variable( $action_variable = '', $position = false ) {
 	$is_action_variable = false;
-	
+
 	if ( false !== $position ) {
-		// When a $position is specified, check that slot in the action_variables array		
+		// When a $position is specified, check that slot in the action_variables array
 		if ( $action_variable ) {
 			$is_action_variable = $action_variable == bp_action_variable( $position );
 		} else {
@@ -769,7 +769,7 @@
 		// When no $position is specified, check the entire array
 		$is_action_variable = in_array( $action_variable, (array)bp_action_variables() );
 	}
-	
+
 	return apply_filters( 'bp_is_action_variable', $is_action_variable, $action_variable, $position );
 }
 
@@ -828,7 +828,7 @@
  */
 function bp_is_root_component( $component_name ) {
 	global $bp;
-	
+
 	if ( !isset( $bp->active_components ) )
 		return false;
 
@@ -1029,7 +1029,7 @@
 
 	if ( bp_is_current_component( 'xprofile' ) && bp_is_current_action( 'edit' ) )
 		return true;
-		
+
 	return false;
 }
 
Index: bp-core/css/admin.dev.css
===================================================================
--- bp-core/css/admin.dev.css	(revision 4960)
+++ bp-core/css/admin.dev.css	(working copy)
@@ -91,7 +91,7 @@
 		float: right;
 		top: 5px;
 	}
-	
+
 div#bp-admin div.prev-next, div#bp-admin div.prev-next p,
 div#bp-admin div.submit, div#bp-admin div.submit p {
 	margin: 0;
Index: bp-core/admin/bp-core-admin.php
===================================================================
--- bp-core/admin/bp-core-admin.php	(revision 4960)
+++ bp-core/admin/bp-core-admin.php	(working copy)
@@ -18,7 +18,7 @@
  * @package BuddyPress Core
  * @since {@internal Unknown}}
  */
-function bp_core_admin_dashboard() { 
+function bp_core_admin_dashboard() {
 	$base_url = bp_get_admin_url( 'admin.php' );
 	$action   = add_query_arg( array( 'page' => 'bp-general-settings' ), $base_url );
 	?>
@@ -330,13 +330,13 @@
  */
 function bp_core_admin_component_options() {
 	global $bp_wizard;
-	
+
 	// Load core functions, if needed
 	if ( !function_exists( 'bp_get_option' ) )
 		require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
 
 	$active_components = apply_filters( 'bp_active_components', bp_get_option( 'bp-active-components' ) );
-	
+
 	// An array of strings looped over to create component setup markup
 	$optional_components = apply_filters( 'bp_admin_optional_components', array(
 		'xprofile' => array(
@@ -387,22 +387,22 @@
 			'description' => __( 'Everything in a BuddyPress community revolves around its members.', 'buddypress' )
 		),
 	) );
-	
+
 	// On new install, set all components to be active by default
 	if ( !empty( $bp_wizard ) && 'install' == $bp_wizard->setup_type && empty( $active_components ) )
 		$active_components = $optional_components;
 
 	?>
-	
+
 	<?php /* The setup wizard uses different, more descriptive text here */ ?>
 	<?php if ( empty( $bp_wizard ) ) : ?>
 
 		<h3><?php _e( 'Available Components', 'buddypress' ); ?></h3>
-				
+
 		<p><?php _e( 'Each component has a unique purpose, and your community may not need each one.', 'buddypress' ); ?></p>
 
 	<?php endif ?>
-	
+
 	<table class="form-table">
 		<tbody>
 
@@ -479,7 +479,7 @@
  */
 function bp_core_admin_page_options() {
 	global $bp;
-	
+
 	// Get the existing WP pages
 	$existing_pages = bp_core_get_directory_page_ids();
 
@@ -491,20 +491,20 @@
 
 		// Only components that need directories should be listed here
 		if ( isset( $bp->{$component_id} ) && !empty( $bp->{$component_id}->has_directory ) ) {
-			
+
 			// component->name was introduced in BP 1.5, so we must provide a fallback
 			$component_name = !empty( $bp->{$component_id}->name ) ? $bp->{$component_id}->name : ucwords( $component_id );
-			
+
 			$directory_pages[$component_id] = $component_name;
 		}
 	}
-	
+
 	$directory_pages = apply_filters( 'bp_directory_pages', $directory_pages );
-	
+
 	?>
-	
+
 	<h3><?php _e( 'Directories', 'buddypress' ); ?></h3>
-	
+
 	<p><?php _e( 'Associate a WordPress Page with each BuddyPress component directory.', 'buddypress' ); ?></p>
 
 	<table class="form-table">
@@ -512,16 +512,16 @@
 
 			<?php foreach ( $directory_pages as $name => $label ) : ?>
 				<?php $disabled = !bp_is_active( $name ) ? ' disabled="disabled"' : ''; ?>
-				
+
 				<tr valign="top">
 					<th scope="row">
 						<label for="bp_pages[<?php echo esc_attr( $name ) ?>]"><?php echo esc_html( $label ) ?><?php if ( !bp_is_active( $name ) ) : ?> <span class="description">(deactivated)</span><?php endif ?></label>
 					</th>
 
 					<td>
-						<?php if ( !bp_is_root_blog() ) 
+						<?php if ( !bp_is_root_blog() )
 							switch_to_blog( bp_get_root_blog_id() ) ?>
-						
+
 						<?php echo wp_dropdown_pages( array(
 							'name'             => 'bp_pages[' . esc_attr( $name ) . ']',
 							'echo'             => false,
@@ -537,8 +537,8 @@
 							<a href="<?php echo get_permalink( $existing_pages[$name] ); ?>" class="button-secondary" target="_bp"><?php _e( 'View' ); ?></a>
 
 						<?php endif; ?>
-						
-						<?php if ( !bp_is_root_blog() ) 
+
+						<?php if ( !bp_is_root_blog() )
 							restore_current_blog() ?>
 
 					</td>
@@ -551,7 +551,7 @@
 
 		</tbody>
 	</table>
-	
+
 	<?php
 
 	// Static pages
@@ -620,4 +620,4 @@
 	wp_enqueue_style( 'thickbox' );
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-core/admin/bp-core-update.php
===================================================================
--- bp-core/admin/bp-core-update.php	(revision 4960)
+++ bp-core/admin/bp-core-update.php	(working copy)
@@ -262,7 +262,7 @@
 	<?php
 	}
 
-	function step_ms_update() {		
+	function step_ms_update() {
 		if ( !current_user_can( 'activate_plugins' ) )
 			return false;
 
@@ -370,14 +370,14 @@
 			return false;
 
 		$existing_pages = bp_core_update_get_page_meta();
-		
+
 		// Provide empty indexes to avoid PHP errors with wp_dropdown_pages()
 		$indexes = array( 'members', 'activity', 'groups', 'forums', 'blogs', 'register', 'activate' );
 		foreach ( $indexes as $index ) {
 			if ( !isset( $existing_pages[$index] ) )
 				$existing_pages[$index] = '';
 		}
-		
+
 		if ( !empty( $existing_pages['blogs'] ) )
 			$existing_blog_page = '&selected=' . $existing_pages['blogs'];
 		else
@@ -1271,16 +1271,16 @@
 
 function bp_core_update_do_network_admin() {
 	$do_network_admin = false;
-	
+
 	if ( is_multisite() && ( !defined( 'BP_ENABLE_MULTIBLOG' ) || !BP_ENABLE_MULTIBLOG ) )
 		$do_network_admin = true;
-	
+
 	return apply_filters( 'bp_core_do_network_admin', $do_network_admin );
 }
 
 function bp_core_update_admin_hook() {
 	$hook = bp_core_update_do_network_admin() ? 'network_admin_menu' : 'admin_menu';
-	
+
 	return apply_filters( 'bp_core_admin_hook', $hook );
 }
 
@@ -1321,4 +1321,4 @@
 add_action( 'admin_notices', 'bp_core_update_nag', 5 );
 add_action( 'network_admin_notices', 'bp_core_update_nag', 5 );
 
-?>
+?>
\ No newline at end of file
Index: bp-core/bp-core-hooks.php
===================================================================
--- bp-core/bp-core-hooks.php	(revision 4960)
+++ bp-core/bp-core-hooks.php	(working copy)
@@ -34,7 +34,7 @@
 
 // Setup widgets
 add_action( 'bp_loaded',  'bp_setup_widgets'           );
-	
+
 // Setup admin bar
 add_action( 'bp_loaded',  'bp_core_load_admin_bar'     );
 
@@ -111,4 +111,4 @@
 	do_action( 'bp_screens' );
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-core/bp-core-cssjs.php
===================================================================
--- bp-core/bp-core-cssjs.php	(revision 4960)
+++ bp-core/bp-core-cssjs.php	(working copy)
@@ -77,10 +77,10 @@
 
 	$image = apply_filters( 'bp_inline_cropper_image', getimagesize( bp_core_avatar_upload_path() . $bp->avatar_admin->image->dir ) );
 	$aspect_ratio = 1;
-	
+
 	$full_height = bp_core_avatar_full_height();
 	$full_width  = bp_core_avatar_full_width();
-	
+
 	// Calculate Aspect Ratio
 	if ( $full_height && ( $full_width != $full_height ) )
 		$aspect_ratio = $full_width / $full_height;
@@ -173,4 +173,4 @@
 }
 add_action( 'wp_head', 'bp_core_add_ajax_url_js' );
 
-?>
+?>
\ No newline at end of file
Index: bp-core/deprecated/1.5.php
===================================================================
--- bp-core/deprecated/1.5.php	(revision 4960)
+++ bp-core/deprecated/1.5.php	(working copy)
@@ -217,7 +217,7 @@
  * @since 1.0
  */
 function bp_page_title() {
-	echo bp_get_page_title(); 
+	echo bp_get_page_title();
 }
 	/**
 	 * Prior to BuddyPress 1.5, this was used to generate the page's <title> text.
@@ -259,7 +259,7 @@
  */
 function groups_at_message_notification( $content, $poster_user_id, $group_id, $activity_id ) {
 	global $bp;
-	
+
 	_deprecated_function( __FUNCTION__, '1.5', 'bp_activity_at_message_notification()' );
 
 	/* Scan for @username strings in an activity update. Notify each user. */
@@ -336,15 +336,15 @@
 /**
  * In BP 1.5, these functions were renamed for greater consistency
  */
-function bp_forum_directory_permalink() { 
+function bp_forum_directory_permalink() {
 	_deprecated_function( __FUNCTION__, '1.5', 'bp_forums_directory_permalink()' );
 	bp_forums_directory_permalink();
-} 
-	function bp_get_forum_directory_permalink() { 
+}
+	function bp_get_forum_directory_permalink() {
 		_deprecated_function( __FUNCTION__, '1.5', 'bp_get_forums_directory_permalink()' );
 		return bp_get_forums_directory_permalink();
 	}
-	
+
 /** Theme *********************************************************************/
 
 /**
Index: bp-core/bp-core-catchuri.php
===================================================================
--- bp-core/bp-core-catchuri.php	(revision 4960)
+++ bp-core/bp-core-catchuri.php	(working copy)
@@ -180,24 +180,24 @@
 			unset( $uri_chunks );
 		}
 	}
-	
-	// URLs with BP_ENABLE_ROOT_PROFILES enabled won't be caught above 
+
+	// URLs with BP_ENABLE_ROOT_PROFILES enabled won't be caught above
 	if ( empty( $matches ) && defined( 'BP_ENABLE_ROOT_PROFILES' ) && BP_ENABLE_ROOT_PROFILES ) {
-		
+
 		// Make sure there's a user corresponding to $bp_uri[0]
 		if ( !empty( $bp_uri[0] ) && $root_profile = get_userdatabylogin( $bp_uri[0] ) ) {
-			
+
 			// Force BP to recognize that this is a members page
 			$matches[]  = 1;
 			$match      = $bp->pages->members;
 			$match->key = 'members';
-			
+
 			// Without the 'members' URL chunk, WordPress won't know which page to load
 			// This filter intercepts the WP query and tells it to load the members page
 			add_filter( 'request', create_function( '$query_args', '$query_args["pagename"] = "' . $match->name . '"; return $query_args;' ) );
-		
+
 		}
-	
+
 	}
 
 	// Search doesn't have an associated page, so we check for it separately
@@ -223,7 +223,7 @@
 	}
 
 	// Global the unfiltered offset to use in bp_core_load_template().
-	// To avoid PHP warnings in bp_core_load_template(), it must always be >= 0 
+	// To avoid PHP warnings in bp_core_load_template(), it must always be >= 0
 	$bp_unfiltered_uri_offset = $uri_offset >= 0 ? $uri_offset : 0;
 
 	// We have an exact match
@@ -237,7 +237,7 @@
 
 			// Viewing a specific user
 			if ( !empty( $bp_uri[$uri_offset + 1] ) ) {
-				
+
 				// Switch the displayed_user based on compatbility mode
 				if ( bp_is_username_compatibility_mode() )
 					$bp->displayed_user->id = (int) bp_core_get_userid( urldecode( $bp_uri[$uri_offset + 1] ) );
@@ -246,7 +246,7 @@
 
 				if ( empty( $bp->displayed_user->id ) ) {
 					// Prevent components from loading their templates
-					$bp->current_component = ''; 
+					$bp->current_component = '';
 
 					bp_do_404();
 					return;
@@ -262,7 +262,7 @@
 					$bp_uri                = array_merge( array(), array_slice( $bp_uri, $uri_offset + 2 ) );
 					$bp->current_component = '';
 				}
-				
+
 				// Reset the offset
 				$uri_offset = 0;
 			}
Index: bp-core/bp-core-component.php
===================================================================
--- bp-core/bp-core-component.php	(revision 4960)
+++ bp-core/bp-core-component.php	(working copy)
@@ -33,9 +33,9 @@
 	 * @var string Unique slug (used in query string and permalinks)
 	 */
 	var $slug;
-	
+
 	/**
-	 * @var bool Does this component need a top-level directory? 
+	 * @var bool Does this component need a top-level directory?
 	 */
 	var $has_directory;
 
@@ -138,7 +138,7 @@
 		if ( !empty( $r['global_tables'] ) )
 			foreach ( $r['global_tables'] as $global_name => $table_name )
 				$this->$global_name = $table_name;
-		
+
 		/** BuddyPress ********************************************************/
 
 		// Register this component in the loaded components array
@@ -342,4 +342,4 @@
 }
 endif; // BP_Component
 
-?>
+?>
\ No newline at end of file
Index: bp-core/bp-core-cache.php
===================================================================
--- bp-core/bp-core-cache.php	(revision 4960)
+++ bp-core/bp-core-cache.php	(working copy)
@@ -48,4 +48,4 @@
 add_action( 'wp_login',              'bp_core_clear_cache' );
 add_action( 'bp_core_render_notice', 'bp_core_clear_cache' );
 
-?>
+?>
\ No newline at end of file
Index: bp-friends/bp-friends-screens.php
===================================================================
--- bp-friends/bp-friends-screens.php	(revision 4960)
+++ bp-friends/bp-friends-screens.php	(working copy)
@@ -94,4 +94,4 @@
 }
 add_action( 'bp_notification_settings', 'friends_screen_notification_settings' );
 
-?>
+?>
\ No newline at end of file
Index: bp-friends/bp-friends-cache.php
===================================================================
--- bp-friends/bp-friends-cache.php	(revision 4960)
+++ bp-friends/bp-friends-cache.php	(working copy)
@@ -35,4 +35,4 @@
 add_action( 'friends_friendship_deleted',   'bp_core_clear_cache' );
 add_action( 'friends_friendship_requested', 'bp_core_clear_cache' );
 
-?>
+?>
\ No newline at end of file
Index: bp-friends/bp-friends-functions.php
===================================================================
--- bp-friends/bp-friends-functions.php	(revision 4960)
+++ bp-friends/bp-friends-functions.php	(working copy)
@@ -256,7 +256,7 @@
 
 function friends_update_friend_totals( $initiator_user_id, $friend_user_id, $status = 'add' ) {
 	global $bp;
-	
+
 	if ( 'add' == $status ) {
 		bp_update_user_meta( $initiator_user_id, 'total_friend_count', (int)bp_get_user_meta( $initiator_user_id, 'total_friend_count', true ) + 1 );
 		bp_update_user_meta( $friend_user_id, 'total_friend_count', (int)bp_get_user_meta( $friend_user_id, 'total_friend_count', true ) + 1 );
@@ -285,4 +285,4 @@
 add_action( 'delete_user',       'friends_remove_data' );
 add_action( 'bp_make_spam_user', 'friends_remove_data' );
 
-?>
+?>
\ No newline at end of file
Index: bp-friends/bp-friends-notifications.php
===================================================================
--- bp-friends/bp-friends-notifications.php	(revision 4960)
+++ bp-friends/bp-friends-notifications.php	(working copy)
@@ -34,7 +34,7 @@
 ', 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link );
 
 	$message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
-	
+
 	/* Send the message */
 	$to = apply_filters( 'friends_notification_new_request_to', $to );
 	$subject = apply_filters( 'friends_notification_new_request_subject', $subject, $initiator_name );
Index: bp-friends/bp-friends-template.php
===================================================================
--- bp-friends/bp-friends-template.php	(revision 4960)
+++ bp-friends/bp-friends-template.php	(working copy)
@@ -75,7 +75,7 @@
  */
 function bp_friends_filter_title() {
 	$current_filter = bp_action_variable( 0 );
-	
+
 	switch ( $current_filter ) {
 		case 'recently-active': default:
 			_e( 'Recently Active', 'buddypress' );
@@ -143,7 +143,7 @@
 		$user_ids = BP_Core_User::get_users( 'random', $total_members );
 		wp_cache_set( 'friends_random_users', $user_ids, 'bp' );
 	}
-	
+
 	?>
 
 	<?php if ( $user_ids['users'] ) { ?>
@@ -446,4 +446,4 @@
 		return apply_filters( 'bp_friend_get_total_requests_count', count( BP_Friends_Friendship::get_friend_user_ids( $user_id, true ) ) );
 	}
 
-?>
+?>
\ No newline at end of file
Index: bp-friends/bp-friends-activity.php
===================================================================
--- bp-friends/bp-friends-activity.php	(revision 4960)
+++ bp-friends/bp-friends-activity.php	(working copy)
@@ -70,7 +70,7 @@
 	switch ( $action ) {
 		case 'friendship_accepted':
 			$link = bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/newest';
-			
+
 			// Set up the string and the filter
 			if ( (int)$total_items > 1 ) {
 				$text = sprintf( __( '%d friends accepted your friendship requests', 'buddypress' ), (int)$total_items );
@@ -79,12 +79,12 @@
 				$text = sprintf( __( '%s accepted your friendship request', 'buddypress' ),  bp_core_get_user_displayname( $item_id ) );
 				$filter = 'bp_friends_single_friendship_accepted_notification';
 			}
-			
+
 			break;
 
 		case 'friendship_request':
 			$link = bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests?new';
-			
+
 			// Set up the string and the filter
 			if ( (int)$total_items > 1 ) {
 				$text = sprintf( __( 'You have %d pending friendship requests', 'buddypress' ), (int)$total_items );
@@ -93,10 +93,10 @@
 				$text = sprintf( __( 'You have a friendship request from %s', 'buddypress' ),  bp_core_get_user_displayname( $item_id ) );
 				$filter = 'bp_friends_single_friendship_request_notification';
 			}
-		
+
 			break;
 	}
-		
+
 	// Return either an HTML link or an array, depending on the requested format
 	if ( 'string' == $format ) {
 		$return = apply_filters( $filter, '<a href="' . $link . '">' . $text . '</a>', (int)$total_items );
@@ -112,4 +112,4 @@
 	return $return;
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-friends/bp-friends-actions.php
===================================================================
--- bp-friends/bp-friends-actions.php	(revision 4960)
+++ bp-friends/bp-friends-actions.php	(working copy)
@@ -78,4 +78,4 @@
 }
 add_action( 'bp_init', 'friends_action_remove_friend' );
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-screens.php
===================================================================
--- bp-members/bp-members-screens.php	(revision 4960)
+++ bp-members/bp-members-screens.php	(working copy)
@@ -45,4 +45,4 @@
 add_action( 'bp_screens', 'bp_members_screen_index' );
 
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-signup.php
===================================================================
--- bp-members/bp-members-signup.php	(revision 4960)
+++ bp-members/bp-members-signup.php	(working copy)
@@ -373,7 +373,7 @@
 	// Multisite installs have their own install procedure
 	if ( is_multisite() ) {
 		wpmu_signup_user( $user_login, $user_email, $usermeta );
-		
+
 		// On multisite, the user id is not created until the user activates the account
 		// but we need to cast $user_id to pass to the filters
 		$user_id = false;
Index: bp-members/bp-members-loader.php
===================================================================
--- bp-members/bp-members-loader.php	(revision 4960)
+++ bp-members/bp-members-loader.php	(working copy)
@@ -186,4 +186,4 @@
 // Create the users component
 $bp->members = new BP_Members_Component();
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-filters.php
===================================================================
--- bp-members/bp-members-filters.php	(revision 4960)
+++ bp-members/bp-members-filters.php	(working copy)
@@ -45,4 +45,4 @@
 }
 add_action( 'bp_loaded', 'bp_members_signup_sanitization' );
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-functions.php
===================================================================
--- bp-members/bp-members-functions.php	(revision 4960)
+++ bp-members/bp-members-functions.php	(working copy)
@@ -509,7 +509,7 @@
 	// No user found
 	if ( empty( $user ) ) {
 		$is_spammer = false;
-		
+
 	// User found
 	} else {
 
@@ -547,7 +547,7 @@
 	// No user found
 	if ( empty( $user ) ) {
 		$is_deleted = true;
-		
+
 	// User found
 	} else {
 
@@ -702,4 +702,4 @@
 	return false;
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-notifications.php
===================================================================
--- bp-members/bp-members-notifications.php	(revision 4960)
+++ bp-members/bp-members-notifications.php	(working copy)
@@ -58,9 +58,9 @@
 
 	if ( empty( $grouped_notifications ) )
 		return false;
-	
+
 	$renderable = array();
-	
+
 	// Calculate a renderable output for each notification type
 	foreach ( (array)$grouped_notifications as $component_name => $action_arrays ) {
 		if ( !$action_arrays )
@@ -75,12 +75,12 @@
 			// @deprecated format_notification_function - 1.5
 			if ( isset( $bp->{$component_name}->format_notification_function ) && function_exists( $bp->{$component_name}->format_notification_function ) ) {
 				$renderable[] = call_user_func( $bp->{$component_name}->format_notification_function, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count );
-			} elseif ( isset( $bp->{$component_name}->notification_callback ) && function_exists( $bp->{$component_name}->notification_callback ) ) { 
+			} elseif ( isset( $bp->{$component_name}->notification_callback ) && function_exists( $bp->{$component_name}->notification_callback ) ) {
 				if ( 'object' == $format ) {
 					$content = call_user_func( $bp->{$component_name}->notification_callback, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count, 'array' );
-					
+
 					$notification_object = new stdClass;
-					
+
 					// Minimal backpat with non-compatible notification
 					// callback functions
 					if ( is_string( $content ) ) {
@@ -90,9 +90,9 @@
 						$notification_object->content = $content['text'];
 						$notification_object->href    = $content['link'];
 					}
-					
+
 					$notification_object->id = $component_action_items[0]->id;
-					
+
 					$renderable[] 	  = $notification_object;
 				} else {
 					$content = call_user_func( $bp->{$component_name}->notification_callback, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count );
@@ -128,4 +128,4 @@
 	return true;
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-template.php
===================================================================
--- bp-members/bp-members-template.php	(revision 4960)
+++ bp-members/bp-members-template.php	(working copy)
@@ -895,13 +895,13 @@
 }
 	function bp_get_displayed_user_username() {
 		global $bp;
-		
+
 		if ( !empty( $bp->displayed_user->id ) ) {
 			$username = bp_core_get_username( $bp->displayed_user->id, $bp->displayed_user->userdata->user_nicename, $bp->displayed_user->userdata->user_login );
 		} else {
 			$username = '';
 		}
-		
+
 		return apply_filters( 'bp_get_displayed_user_username', $username );
 	}
 
@@ -910,13 +910,13 @@
 }
 	function bp_get_loggedin_user_username() {
 		global $bp;
-		
+
 		if ( !empty( $bp->loggedin_user->id ) ) {
 			$username = bp_core_get_username( $bp->loggedin_user->id, $bp->loggedin_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login );
 		} else {
 			$username = '';
 		}
-		
+
 		return apply_filters( 'bp_get_loggedin_user_username', $username );
 	}
 
@@ -1179,4 +1179,4 @@
 			return $url;
 	}
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-buddybar.php
===================================================================
--- bp-members/bp-members-buddybar.php	(revision 4960)
+++ bp-members/bp-members-buddybar.php	(working copy)
@@ -99,7 +99,7 @@
 		return false; ?>
 
 	<li id="bp-adminbar-adminoptions-menu">
-		
+
 		<a href=""><?php _e( 'Admin Options', 'buddypress' ) ?></a>
 
 		<ul>
@@ -108,9 +108,9 @@
 				<li><a href="<?php bp_members_component_link( 'profile', 'edit' ); ?>"><?php printf( __( "Edit %s's Profile", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>
 
 			<?php endif ?>
-			
+
 			<li><a href="<?php bp_members_component_link( 'profile', 'change-avatar' ); ?>"><?php printf( __( "Edit %s's Avatar", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>
-			
+
 			<?php if ( !bp_core_is_user_spammer( $bp->displayed_user->id ) ) : ?>
 
 				<li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/mark-spammer/', 'mark-unmark-spammer' ) ?>" class="confirm"><?php printf( __( "Mark as Spammer", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ); ?></a></li>
@@ -119,8 +119,8 @@
 
 				<li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/unmark-spammer/', 'mark-unmark-spammer' ) ?>" class="confirm"><?php _e( "Not a Spammer", 'buddypress' ) ?></a></li>
 
-			<?php endif; ?>			
-	
+			<?php endif; ?>
+
 			<li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/delete-user/', 'delete-user' ) ?>" class="confirm"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ); ?></a></li>
 
 			<?php do_action( 'bp_members_adminbar_admin_menu' ) ?>
@@ -132,4 +132,4 @@
 }
 add_action( 'bp_adminbar_menus', 'bp_members_adminbar_admin_menu', 20 );
 
-?>
+?>
\ No newline at end of file
Index: bp-members/bp-members-adminbar.php
===================================================================
--- bp-members/bp-members-adminbar.php	(revision 4960)
+++ bp-members/bp-members-adminbar.php	(working copy)
@@ -110,7 +110,7 @@
 		'title'  => __( "Edit Profile", 'buddypress' ),
 		'href'   => bp_get_members_component_link( 'profile', 'edit' )
 	) );
-	
+
 	// User Admin > Edit this user's avatar
 	$wp_admin_bar->add_menu( array(
 		'parent' => $bp->user_admin_menu_id,
@@ -118,7 +118,7 @@
 		'title'  => __( "Edit Avatar", 'buddypress' ),
 		'href'   => bp_get_members_component_link( 'profile', 'change-avatar' )
 	) );
-	
+
 	// User Admin > Spam/unspam
 	if ( !bp_core_is_user_spammer( bp_displayed_user_id() ) ) {
 		$wp_admin_bar->add_menu( array(
@@ -126,25 +126,25 @@
 			'id'     => 'spam-user',
 			'title'  => __( 'Mark as Spammer', 'buddypress' ),
 			'href'   => wp_nonce_url( bp_displayed_user_domain() . 'admin/mark-spammer/', 'mark-unmark-spammer' ),
-			'meta'   => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as a spammer?', 'buddypress' ) . '");' ) 
-		) );	
+			'meta'   => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as a spammer?', 'buddypress' ) . '");' )
+		) );
 	} else {
 		$wp_admin_bar->add_menu( array(
 			'parent' => $bp->user_admin_menu_id,
 			'id'     => 'unspam-user',
 			'title'  => __( 'Not a Spammer', 'buddypress' ),
 			'href'   => wp_nonce_url( bp_displayed_user_domain() . 'admin/unmark-spammer/', 'mark-unmark-spammer' ),
-			'meta'   => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as not a spammer?', 'buddypress' ) . '");' ) 
+			'meta'   => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as not a spammer?', 'buddypress' ) . '");' )
 		) );
 	}
-	
+
 	// User Admin > Delete Account
 	$wp_admin_bar->add_menu( array(
 		'parent' => $bp->user_admin_menu_id,
 		'id'     => 'delete-user',
 		'title'  => __( 'Delete Account', 'buddypress' ),
 		'href'   => wp_nonce_url( bp_displayed_user_domain() . 'admin/delete-user/', 'delete-user' ),
-		'meta'   => array( 'onclick' => 'confirm(" ' . __( "Are you sure you want to delete this user's account?", 'buddypress' ) . '");' ) 
+		'meta'   => array( 'onclick' => 'confirm(" ' . __( "Are you sure you want to delete this user's account?", 'buddypress' ) . '");' )
 	) );
 }
 add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_user_admin_menu', 99 );
@@ -160,20 +160,20 @@
 
 	if ( !is_user_logged_in() )
 		return false;
-		
+
 	if ( $notifications = bp_core_get_notifications_for_user( bp_loggedin_user_id(), 'object' ) ) {
 		$menu_title = sprintf( __( 'Notifications <span id="ab-pending-notifications" class="pending-count">%s</span>', 'buddypress' ), count( $notifications ) );
 	} else {
 		$menu_title = __( 'Notifications', 'buddypress' );
 	}
-	
+
 	// Add the top-level Notifications button
 	$wp_admin_bar->add_menu( array(
 		'id'    => 'bp-notifications',
 		'title' => $menu_title,
 		'href'  => bp_loggedin_user_domain()
 	) );
-	
+
 	if ( !empty( $notifications ) ) {
 		foreach ( (array)$notifications as $notification ) {
 			$wp_admin_bar->add_menu( array(
@@ -191,7 +191,7 @@
 			'href'   => bp_loggedin_user_domain()
 		) );
 	}
-	
+
 	return;
 }
 add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_notifications_menu', 999 );
Index: bp-members/bp-members-actions.php
===================================================================
--- bp-members/bp-members-actions.php	(revision 4960)
+++ bp-members/bp-members-actions.php	(working copy)
@@ -106,7 +106,7 @@
 
 		// Allow plugins to do neat things
 		do_action( 'bp_core_action_set_spammer_status', bp_displayed_user_id(), $is_spam );
-		
+
 		// Redirect back to where we came from
 		bp_core_redirect( wp_get_referer() );
 	}
Index: bp-loader.php
===================================================================
--- bp-loader.php	(revision 4960)
+++ bp-loader.php	(working copy)
@@ -30,16 +30,16 @@
 
 // Define on which blog ID BuddyPress should run
 if ( !defined( 'BP_ROOT_BLOG' ) ) {
-	
+
 	// Root blog is the main site on this network
 	if ( is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ) {
 		$current_site = get_current_site();
 		$root_blog_id = $current_site->blog_id;
-		
+
 	// Root blog is every site on this network
 	} elseif ( is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) ) {
 		$root_blog_id = get_current_blog_id();
-		
+
 	// Root blog is the only blog on this network
 	} elseif( !is_multisite() ) {
 		$root_blog_id = 1;
@@ -97,14 +97,14 @@
 
 if ( !function_exists( 'bp_loader_activate' ) ) :
 /**
- * Defines BP's activation routine. 
- * 
- * Most of BP's crucial setup is handled by the setup wizard. This function takes care of some 
- * issues with incompatible legacy themes, and provides a hook for other functions to know that 
- * BP has been activated. 
- * 
- * @package BuddyPress Core 
-*/ 
+ * Defines BP's activation routine.
+ *
+ * Most of BP's crucial setup is handled by the setup wizard. This function takes care of some
+ * issues with incompatible legacy themes, and provides a hook for other functions to know that
+ * BP has been activated.
+ *
+ * @package BuddyPress Core
+*/
 function bp_loader_activate() {
 	// Force refresh theme roots.
 	delete_site_transient( 'theme_roots' );
Index: bp-activity/bp-activity-actions.php
===================================================================
--- bp-activity/bp-activity-actions.php	(revision 4960)
+++ bp-activity/bp-activity-actions.php	(working copy)
@@ -322,4 +322,4 @@
 }
 add_action( 'bp_actions', 'bp_activity_action_favorites_feed' );
 
-?>
+?>
\ No newline at end of file
Index: bp-activity/bp-activity-screens.php
===================================================================
--- bp-activity/bp-activity-screens.php	(revision 4960)
+++ bp-activity/bp-activity-screens.php	(working copy)
@@ -78,7 +78,7 @@
  * @uses bp_activity_clear_new_mentions()
  * @uses bp_is_my_profile()
  */
-function bp_activity_reset_my_new_mentions() {	
+function bp_activity_reset_my_new_mentions() {
 	if ( bp_is_my_profile() )
 		bp_activity_clear_new_mentions( bp_loggedin_user_id() );
 }
@@ -90,10 +90,10 @@
 	// No displayed user or not viewing activity component
 	if ( !bp_is_activity_component() )
 		return false;
-	
-	if ( empty( $bp->current_action ) || !is_numeric( $bp->current_action ) ) 
-		return false; 
-	
+
+	if ( empty( $bp->current_action ) || !is_numeric( $bp->current_action ) )
+		return false;
+
 	// Get the activity details
 	$activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action(), 'show_hidden' => true ) );
 
@@ -196,4 +196,4 @@
 }
 add_action( 'bp_notification_settings', 'bp_activity_screen_notification_settings', 1 );
 
-?>
+?>
\ No newline at end of file
Index: bp-activity/bp-activity-loader.php
===================================================================
--- bp-activity/bp-activity-loader.php	(revision 4960)
+++ bp-activity/bp-activity-loader.php	(working copy)
@@ -282,4 +282,4 @@
 // Create the activity component
 $bp->activity = new BP_Activity_Component();
 
-?>
+?>
\ No newline at end of file
Index: bp-activity/bp-activity-filters.php
===================================================================
--- bp-activity/bp-activity-filters.php	(revision 4960)
+++ bp-activity/bp-activity-filters.php	(working copy)
@@ -73,9 +73,9 @@
 add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_make_nofollow_filter' );
 add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_make_nofollow_filter' );
 
-add_filter( 'pre_comment_content',                   'bp_activity_at_name_filter' ); 
-add_filter( 'group_forum_topic_text_before_save',    'bp_activity_at_name_filter' ); 
-add_filter( 'group_forum_post_text_before_save',     'bp_activity_at_name_filter' ); 
+add_filter( 'pre_comment_content',                   'bp_activity_at_name_filter' );
+add_filter( 'group_forum_topic_text_before_save',    'bp_activity_at_name_filter' );
+add_filter( 'group_forum_post_text_before_save',     'bp_activity_at_name_filter' );
 
 add_filter( 'bp_get_activity_parent_content',        'bp_create_excerpt' );
 
@@ -112,7 +112,7 @@
  * @package BuddyPress Activity
  *
  * @param string $content The activity content
- * @param int $activity_id When $adjust_mention_count is true, you must provide an $activity_id, 
+ * @param int $activity_id When $adjust_mention_count is true, you must provide an $activity_id,
  *   which will be added to the list of the user's unread mentions
  */
 function bp_activity_at_name_filter( $content, $activity_id = 0 ) {
@@ -135,12 +135,12 @@
 		$content = preg_replace( '/(@' . $username . '\b)/', "<a href='" . bp_core_get_user_domain( $user_id ) . "' rel='nofollow'>@$username</a>", $content );
 	}
 
-	// Adjust the activity count for this item	
+	// Adjust the activity count for this item
 	if ( $activity_id )
 		bp_activity_adjust_mention_count( $activity_id, 'add' );
 
 	return $content;
-} 
+}
 
 /**
  * Catch mentions in saved activity items
@@ -153,10 +153,10 @@
 function bp_activity_at_name_filter_updates( $activity ) {
 	// Only run this function once for a given activity item
 	remove_filter( 'bp_activity_after_save', 'bp_activity_at_name_filter_updates' );
-	
+
 	// Run the content through the linking filter, making sure to increment mention count
 	$activity->content = bp_activity_at_name_filter( $activity->content, $activity->id );
-	
+
 	// Resave the activity with the new content
 	$activity->save();
 }
Index: bp-activity/bp-activity-functions.php
===================================================================
--- bp-activity/bp-activity-functions.php	(revision 4960)
+++ bp-activity/bp-activity-functions.php	(working copy)
@@ -1052,7 +1052,7 @@
 
 	$bp->activity->read_more_id = $activity->id;
 
-	add_filter( 'embed_post_id',            create_function( '', 'global $bp; return $bp->activity->read_more_id;' ) ); 
+	add_filter( 'embed_post_id',            create_function( '', 'global $bp; return $bp->activity->read_more_id;' ) );
 	add_filter( 'bp_embed_get_cache',       'bp_embed_activity_cache',      10, 3 );
 	add_action( 'bp_embed_update_cache',    'bp_embed_activity_save_cache', 10, 3 );
 }
Index: bp-activity/bp-activity-notifications.php
===================================================================
--- bp-activity/bp-activity-notifications.php	(revision 4960)
+++ bp-activity/bp-activity-notifications.php	(working copy)
@@ -6,7 +6,7 @@
  * Sends an email notification and a BP notification when someone mentions you in an update
  *
  * @package BuddyPress Activity
- * @param str $content The content of the activity update 
+ * @param str $content The content of the activity update
  * @param int $poster_user_id The unique user_id of the user who sent the update
  * @param int $activity_id The id of the activity update
  */
@@ -17,10 +17,10 @@
 
 	$subject = '';
 	$message = '';
-	
+
 	// Add the BP notification
 	bp_core_add_notification( $activity_id, $receiver_user_id, 'activity', 'new_at_mention', $activity->user_id );
-			
+
 	// Now email the user with the contents of the message (if they have enabled email notifications)
 	if ( 'no' != bp_get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) {
 		$poster_name = bp_core_get_user_displayname( $activity->user_id );
@@ -68,7 +68,7 @@
 
 		wp_mail( $to, $subject, $message );
 	}
-	
+
 	do_action( 'bp_activity_sent_mention_email', $activity, $subject, $message, $content );
 }
 
@@ -161,4 +161,4 @@
 	}
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-activity/bp-activity-template.php
===================================================================
--- bp-activity/bp-activity-template.php	(revision 4960)
+++ bp-activity/bp-activity-template.php	(working copy)
@@ -1587,4 +1587,4 @@
 }
 add_action( 'bp_head', 'bp_activity_sitewide_feed' );
 
-?>
+?>
\ No newline at end of file
Index: bp-activity/bp-activity-classes.php
===================================================================
--- bp-activity/bp-activity-classes.php	(revision 4960)
+++ bp-activity/bp-activity-classes.php	(working copy)
@@ -467,7 +467,7 @@
 
 		// array of prepared integers or quoted strings
 		$items_prepared = array();
-		
+
 		// clean up and format each item
 		foreach ( $items_dirty as $item ) {
 			// clean up the string
@@ -548,4 +548,4 @@
 	}
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-settings/bp-settings-actions.php
===================================================================
--- bp-settings/bp-settings-actions.php	(revision 4960)
+++ bp-settings/bp-settings-actions.php	(working copy)
@@ -164,4 +164,4 @@
 	bp_core_load_template( apply_filters( 'bp_core_screen_delete_account', 'members/single/settings/delete-account' ) );
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-settings/bp-settings-loader.php
===================================================================
--- bp-settings/bp-settings-loader.php	(revision 4960)
+++ bp-settings/bp-settings-loader.php	(working copy)
@@ -173,4 +173,4 @@
 // Create the settingss component
 $bp->settings = new BP_Settings_Component();
 
-?>
+?>
\ No newline at end of file
Index: bp-settings/bp-settings-template.php
===================================================================
--- bp-settings/bp-settings-template.php	(revision 4960)
+++ bp-settings/bp-settings-template.php	(working copy)
@@ -57,4 +57,4 @@
 		return apply_filters( 'bp_get_settings_root_slug', $bp->settings->root_slug );
 	}
 
-?>
+?>
\ No newline at end of file
Index: bp-blogs/bp-blogs-loader.php
===================================================================
--- bp-blogs/bp-blogs-loader.php	(revision 4960)
+++ bp-blogs/bp-blogs-loader.php	(working copy)
@@ -184,4 +184,4 @@
 // Create the blogs component
 $bp->blogs = new BP_Blogs_Component();
 
-?>
+?>
\ No newline at end of file
Index: bp-blogs/bp-blogs-functions.php
===================================================================
--- bp-blogs/bp-blogs-functions.php	(revision 4960)
+++ bp-blogs/bp-blogs-functions.php	(working copy)
@@ -34,7 +34,7 @@
 }
 
 /**
- * Populates the BP blogs table with existing blogs. 
+ * Populates the BP blogs table with existing blogs.
  *
  * @package BuddyPress Blogs
  *
@@ -55,7 +55,7 @@
 		foreach( (array)$blog_ids as $blog_id ) {
 			$users 		= get_users( array( 'blog_id' => $blog_id ) );
 			$subscribers 	= get_users( array( 'blog_id' => $blog_id, 'role' => 'subscriber' ) );
-			
+
 			if ( $users ) {
 				foreach ( (array)$users as $user ) {
 					// Don't record blogs for subscribers
@@ -102,7 +102,7 @@
 	bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'last_activity', bp_core_current_time() );
 
 	$is_private = !empty( $_POST['blog_public'] ) && (int)$_POST['blog_public'] ? false : true;
-	$is_private = !apply_filters( 'bp_is_new_blog_public', !$is_private ); 
+	$is_private = !apply_filters( 'bp_is_new_blog_public', !$is_private );
 
 	// Only record this activity if the blog is public
 	if ( !$is_private && !$no_activity ) {
@@ -165,7 +165,7 @@
 	if ( 'post' != $post->post_type )
 		return false;
 
-	$is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 
+	$is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) );
 
 	if ( 'publish' == $post->post_status && empty( $post->post_password ) ) {
 		if ( $is_blog_public || !is_multisite() ) {
Index: bp-blogs/bp-blogs-template.php
===================================================================
--- bp-blogs/bp-blogs-template.php	(revision 4960)
+++ bp-blogs/bp-blogs-template.php	(working copy)
@@ -636,4 +636,4 @@
 		return bp_get_button( apply_filters( 'bp_get_blogs_visit_blog_button', $button ) );
 	}
 
-?>
+?>
\ No newline at end of file
Index: bp-blogs/bp-blogs-activity.php
===================================================================
--- bp-blogs/bp-blogs-activity.php	(revision 4960)
+++ bp-blogs/bp-blogs-activity.php	(working copy)
@@ -91,4 +91,4 @@
 	}
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-blogs/bp-blogs-buddybar.php
===================================================================
--- bp-blogs/bp-blogs-buddybar.php	(revision 4960)
+++ bp-blogs/bp-blogs-buddybar.php	(working copy)
@@ -60,4 +60,4 @@
 }
 add_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 );
 
-?>
+?>
\ No newline at end of file
Index: bp-blogs/bp-blogs-actions.php
===================================================================
--- bp-blogs/bp-blogs-actions.php	(revision 4960)
+++ bp-blogs/bp-blogs-actions.php	(working copy)
@@ -13,4 +13,4 @@
 }
 add_action( 'bp_actions', 'bp_blogs_redirect_to_random_blog' );
 
-?>
+?>
\ No newline at end of file
Index: bp-blogs/bp-blogs-screens.php
===================================================================
--- bp-blogs/bp-blogs-screens.php	(revision 4960)
+++ bp-blogs/bp-blogs-screens.php	(working copy)
@@ -35,4 +35,4 @@
 }
 add_action( 'bp_screens', 'bp_blogs_screen_index', 2 );
 
-?>
+?>
\ No newline at end of file
Index: bp-blogs/bp-blogs-cache.php
===================================================================
--- bp-blogs/bp-blogs-cache.php	(revision 4960)
+++ bp-blogs/bp-blogs-cache.php	(working copy)
@@ -34,4 +34,4 @@
 add_action( 'bp_blogs_new_blog',             'bp_core_clear_cache' );
 add_action( 'bp_blogs_remove_data',          'bp_core_clear_cache' );
 
-?>
+?>
\ No newline at end of file
Index: bp-messages/bp-messages-loader.php
===================================================================
--- bp-messages/bp-messages-loader.php	(revision 4960)
+++ bp-messages/bp-messages-loader.php	(working copy)
@@ -68,7 +68,7 @@
 			'table_name_messages'   => $bp->table_prefix . 'bp_messages_messages',
 			'table_name_recipients' => $bp->table_prefix . 'bp_messages_recipients'
 		);
-		
+
 		// All globals for messaging component.
 		// Note that global_tables is included in this array.
 		$globals = array(
Index: bp-messages/bp-messages-functions.php
===================================================================
--- bp-messages/bp-messages-functions.php	(revision 4960)
+++ bp-messages/bp-messages-functions.php	(working copy)
@@ -56,7 +56,7 @@
 			$message->subject = __( 'No Subject', 'buddypress' );
 
 		$recipient_ids 	    = array();
-		
+
 		// Invalid recipients are added to an array, for future enhancements
 		$invalid_recipients = array();
 
@@ -71,12 +71,12 @@
 					$recipient_id = (int) $recipient;
 
 			} else {
-				if ( bp_is_username_compatibility_mode() ) 
-					$recipient_id = bp_core_get_userid( $recipient ); 
+				if ( bp_is_username_compatibility_mode() )
+					$recipient_id = bp_core_get_userid( $recipient );
 				else
 					$recipient_id = bp_core_get_userid_from_nicename( $recipient );
 			}
-			
+
 			if ( !$recipient_id )
 				$invalid_recipients[] = $recipient;
 			else
@@ -235,7 +235,7 @@
 	if ( 'new_message' == $action ) {
 		$link  = bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox';
 		$title = __( 'Inbox', 'buddypress' );
-		
+
 		if ( (int)$total_items > 1 ) {
 			$text = sprintf( __('You have %d new messages', 'buddypress' ), (int)$total_items );
 			$filter = 'bp_messages_multiple_new_message_notification';
Index: bp-messages/bp-messages-classes.php
===================================================================
--- bp-messages/bp-messages-classes.php	(revision 4960)
+++ bp-messages/bp-messages-classes.php	(working copy)
@@ -94,7 +94,7 @@
 			$type_sql = $wpdb->prepare( " AND r.unread_count != 0 " );
 		elseif ( $type == 'read' )
 			$type_sql = $wpdb->prepare( " AND r.unread_count = 0 " );
-		
+
 		if ( 'sentbox' == $box ) {
 			$thread_ids = $wpdb->get_results( $wpdb->prepare( "SELECT m.thread_id, MAX(m.date_sent) AS date_sent FROM {$bp->messages->table_name_recipients} r, {$bp->messages->table_name_messages} m WHERE m.thread_id = r.thread_id AND m.sender_id = r.user_id AND m.sender_id = %d AND r.is_deleted = 0 GROUP BY m.thread_id ORDER BY date_sent DESC {$pag_sql}", $user_id ) );
 			$total_threads = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( DISTINCT m.thread_id ) FROM {$bp->messages->table_name_recipients} r, {$bp->messages->table_name_messages} m WHERE m.thread_id = r.thread_id AND m.sender_id = r.user_id AND m.sender_id = %d AND r.is_deleted = 0 ", $user_id ) );
@@ -253,7 +253,7 @@
 	function bp_messages_message( $id = null ) {
 		$this->__construct( $id );
 	}
-	
+
 	function __construct( $id = null ) {
 		global $bp;
 
@@ -378,7 +378,7 @@
 	function bp_messages_notice( $id = null ) {
 		$this->__construct($id);
 	}
-	
+
 	function __construct( $id = null ) {
 		if ( $id ) {
 			$this->id = $id;
Index: bp-messages/bp-messages-actions.php
===================================================================
--- bp-messages/bp-messages-actions.php	(revision 4960)
+++ bp-messages/bp-messages-actions.php	(working copy)
@@ -15,7 +15,7 @@
 		return false;
 
 	$thread_id = (int)bp_action_variable( 0 );
-	
+
 	if ( !$thread_id || !messages_is_valid_thread( $thread_id ) || ( !messages_check_thread_access( $thread_id ) && !is_super_admin() ) )
 		bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() );
 
@@ -36,10 +36,10 @@
 
 	// Mark message read
 	messages_mark_thread_read( $thread_id );
-	
+
 	// Decrease the unread count in the nav before it's rendered
 	$name = sprintf( __( 'Messages <span>%s</span>', 'buddypress' ), bp_get_total_unread_messages_count() );
-	
+
 	$bp->bp_nav[$bp->messages->slug]['name'] = $name;
 
 	do_action( 'messages_action_view_message' );
@@ -66,7 +66,7 @@
 		return false;
 
 	$thread_id = bp_action_variable( 1 );
-	
+
 	if ( !$thread_id || !is_numeric( $thread_id ) || !messages_check_thread_access( $thread_id ) ) {
 		bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() );
 	} else {
Index: bp-messages/bp-messages-screens.php
===================================================================
--- bp-messages/bp-messages-screens.php	(revision 4960)
+++ bp-messages/bp-messages-screens.php	(working copy)
@@ -91,7 +91,7 @@
 		return false;
 
 	$notice_id = (int)bp_action_variable( 1 );
-	
+
 	if ( !empty( $notice_id ) && is_numeric( $notice_id ) ) {
 		$notice = new BP_Messages_Notice( $notice_id );
 
Index: bp-messages/bp-messages-cache.php
===================================================================
--- bp-messages/bp-messages-cache.php	(revision 4960)
+++ bp-messages/bp-messages-cache.php	(working copy)
@@ -17,4 +17,4 @@
 add_action( 'messages_screen_sentbox', 'bp_core_clear_cache' );
 add_action( 'messages_screen_inbox',   'bp_core_clear_cache' );
 
-?>
+?>
\ No newline at end of file
Index: bp-forums/bp-forums-loader.php
===================================================================
--- bp-forums/bp-forums-loader.php	(revision 4960)
+++ bp-forums/bp-forums-loader.php	(working copy)
@@ -105,7 +105,7 @@
 		// Stop if there is no user displayed or logged in
 		if ( !is_user_logged_in() && !isset( $bp->displayed_user->id ) )
 			return;
-		
+
 		// Add 'Forums' to the main navigation
 		$main_nav = array(
 			'name'                => __( 'Forums', 'buddypress' ),
@@ -247,4 +247,4 @@
 // Create the forums component
 $bp->forums = new BP_Forums_Component();
 
-?>
+?>
\ No newline at end of file
Index: bp-forums/bp-forums-admin.php
===================================================================
--- bp-forums/bp-forums-admin.php	(revision 4960)
+++ bp-forums/bp-forums-admin.php	(working copy)
@@ -15,8 +15,8 @@
 add_action( bp_core_admin_hook(), 'bp_forums_add_admin_menu' );
 
 function bp_forums_bbpress_admin() {
-	global $bp; 
-	
+	global $bp;
+
 	$action = bp_get_admin_url( 'admin.php?page=bb-forums-setup&reinstall=1' );
 	?>
 
@@ -99,7 +99,7 @@
 					default:
 						// Just write the contents to screen
 						_e( '<p>A configuration file could not be created. No problem, but you will need to save the text shown below into a file named <code>bb-config.php</code> in the root directory of your WordPress installation before you can start using the forum functionality.</p>', 'buddypress' ); ?>
-					
+
 						<textarea style="display:block; margin-top: 30px; width: 80%;" rows="50"><?php echo htmlspecialchars( $result ); ?></textarea>
 
 					<?php
@@ -294,4 +294,4 @@
 	return 1;
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-forums/bp-forums-filters.php
===================================================================
--- bp-forums/bp-forums-filters.php	(revision 4960)
+++ bp-forums/bp-forums-filters.php	(working copy)
@@ -156,9 +156,9 @@
  */
 function bp_forums_add_replied_distinct_sql( $sql ) {
 	global $wpdb;
-	
+
 	$sql = $wpdb->prepare( "DISTINCT t.topic_id, " );
-	
+
 	return $sql;
 }
 
@@ -177,9 +177,9 @@
  */
 function bp_forums_add_replied_join_sql( $sql ) {
 	global $bbdb, $wpdb;
-	
+
 	$sql .= $wpdb->prepare( " LEFT JOIN $bbdb->posts p ON p.topic_id = t.topic_id " );
-	
+
 	return $sql;
 }
 
@@ -197,7 +197,7 @@
  */
 function bp_forums_add_replied_where_sql( $sql ) {
 	global $wpdb;
-	
+
 	$sql .= $wpdb->prepare( " AND p.poster_id = %s ", bp_displayed_user_id() );
 
 	return $sql;
Index: bp-forums/bp-forums-template.php
===================================================================
--- bp-forums/bp-forums-template.php	(revision 4960)
+++ bp-forums/bp-forums-template.php	(working copy)
@@ -1399,4 +1399,4 @@
 	function bp_get_forum_topic_count( $user_id = 0 ) {
 		return apply_filters( 'bp_get_forum_topic_count', bp_forums_total_topic_count( $user_id ) );
 	}
-?>
+?>
\ No newline at end of file
Index: bp-forums/bp-forums-bbpress.php
===================================================================
--- bp-forums/bp-forums-bbpress.php	(revision 4960)
+++ bp-forums/bp-forums-bbpress.php	(working copy)
@@ -5,4 +5,4 @@
 
 // Exit if accessed directly
 if ( !defined( 'ABSPATH' ) ) exit;
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-adminbar.php
===================================================================
--- bp-groups/bp-groups-adminbar.php	(revision 4960)
+++ bp-groups/bp-groups-adminbar.php	(working copy)
@@ -49,7 +49,7 @@
 		'title' => $avatar . bp_get_current_group_name(),
 		'href'  => bp_get_group_permalink( $bp->groups->current_group )
 	) );
-	
+
 	// Group Admin > Edit details
 	$wp_admin_bar->add_menu( array(
 		'parent' => $bp->group_admin_menu_id,
@@ -57,7 +57,7 @@
 		'title'  => __( 'Edit Details', 'buddypress' ),
 		'href'   =>  bp_get_groups_action_link( 'admin/edit-details' )
 	) );
-	
+
 	// Group Admin > Group settings
 	$wp_admin_bar->add_menu( array(
 		'parent' => $bp->group_admin_menu_id,
@@ -65,7 +65,7 @@
 		'title'  => __( 'Edit Settings', 'buddypress' ),
 		'href'   =>  bp_get_groups_action_link( 'admin/group-settings' )
 	) );
-	
+
 	// Group Admin > Group avatar
 	$wp_admin_bar->add_menu( array(
 		'parent' => $bp->group_admin_menu_id,
@@ -73,7 +73,7 @@
 		'title'  => __( 'Edit Avatar', 'buddypress' ),
 		'href'   =>  bp_get_groups_action_link( 'admin/group-avatar' )
 	) );
-	
+
 	// Group Admin > Manage invitations
 	if ( bp_is_active( 'friends' ) ) {
 		$wp_admin_bar->add_menu( array(
@@ -83,7 +83,7 @@
 			'href'   =>  bp_get_groups_action_link( 'send-invites' )
 		) );
 	}
-	
+
 	// Group Admin > Manage members
 	$wp_admin_bar->add_menu( array(
 		'parent' => $bp->group_admin_menu_id,
@@ -91,7 +91,7 @@
 		'title'  => __( 'Manage Members', 'buddypress' ),
 		'href'   =>  bp_get_groups_action_link( 'admin/manage-members' )
 	) );
-	
+
 	// Group Admin > Membership Requests
 	if ( bp_get_group_status( $bp->groups->current_group ) == 'private' ) {
 		$wp_admin_bar->add_menu( array(
@@ -100,8 +100,8 @@
 			'title'  => __( 'Membership Requests', 'buddypress' ),
 			'href'   =>  bp_get_groups_action_link( 'admin/membership-requests' )
 		) );
-	}	
-	
+	}
+
 	// Delete Group
 	$wp_admin_bar->add_menu( array(
 		'parent' => $bp->group_admin_menu_id,
Index: bp-groups/bp-groups-buddybar.php
===================================================================
--- bp-groups/bp-groups-buddybar.php	(revision 4960)
+++ bp-groups/bp-groups-buddybar.php	(working copy)
@@ -17,9 +17,9 @@
 
 		<ul>
 			<li><a href="<?php bp_groups_action_link( 'admin/edit-details' ); ?>"><?php _e( 'Edit Details', 'buddypress' ); ?></a></li>
-			
+
 			<li><a href="<?php bp_groups_action_link( 'admin/group-settings' );  ?>"><?php _e( 'Group Settings', 'buddypress' ); ?></a></li>
-			
+
 			<li><a href="<?php bp_groups_action_link( 'admin/group-avatar' ); ?>"><?php _e( 'Group Avatar', 'buddypress' ); ?></a></li>
 
 			<?php if ( bp_is_active( 'friends' ) ) : ?>
@@ -47,4 +47,4 @@
 }
 add_action( 'bp_adminbar_menus', 'bp_groups_adminbar_admin_menu', 20 );
 
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-activity.php
===================================================================
--- bp-groups/bp-groups-activity.php	(revision 4960)
+++ bp-groups/bp-groups-activity.php	(working copy)
@@ -93,7 +93,7 @@
 				$text = sprintf( __( '%1$d new membership requests for the group "%2$s"', 'buddypress' ), (int)$total_items, $group->name );
 				$filter = 'bp_groups_multiple_new_membership_requests_notification';
 				$notification_link = $group_link . 'admin/membership-requests/?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Group Membership Requests', 'buddypress' ) . '">' . $text . '</a>', $group_link, $total_items, $group->name, $text, $notification_link );
 				} else {
@@ -107,7 +107,7 @@
 				$text = sprintf( __( '%s requests group membership', 'buddypress' ), $user_fullname );
 				$filter = 'bp_groups_single_new_membership_request_notification';
 				$notification_link = $group_link . 'admin/membership-requests/?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . sprintf( __( '%s requests group membership', 'buddypress' ), $user_fullname ) . '">' . $text . '</a>', $group_link, $user_fullname, $group->name, $text, $notification_link );
 				} else {
@@ -117,7 +117,7 @@
 					), $group_link, $user_fullname, $group->name, $text, $notification_link );
 				}
 			}
-			
+
 			break;
 
 		case 'membership_request_accepted':
@@ -128,9 +128,9 @@
 
 			if ( (int)$total_items > 1 ) {
 				$text = sprintf( __( '%d accepted group membership requests', 'buddypress' ), (int)$total_items, $group->name );
-				$filter = 'bp_groups_multiple_membership_request_accepted_notification'; 				
+				$filter = 'bp_groups_multiple_membership_request_accepted_notification';
 				$notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link );
 				} else {
@@ -143,7 +143,7 @@
 				$text = sprintf( __( 'Membership for group "%s" accepted', 'buddypress' ), $group->name );
 				$filter = 'bp_groups_single_membership_request_accepted_notification';
 				$notification_link = $group_link . '?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
 				} else {
@@ -161,12 +161,12 @@
 
 			$group = new BP_Groups_Group( $group_id );
 			$group_link = bp_get_group_permalink( $group );
-			
+
 			if ( (int)$total_items > 1 ) {
 				$text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int)$total_items, $group->name );
 				$filter = 'bp_groups_multiple_membership_request_rejected_notification';
 				$notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name );
 				} else {
@@ -179,7 +179,7 @@
 				$text = sprintf( __( 'Membership for group "%s" rejected', 'buddypress' ), $group->name );
 				$filter = 'bp_groups_single_membership_request_rejected_notification';
 				$notification_link = $group_link . '?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
 				} else {
@@ -202,7 +202,7 @@
 				$text = sprintf( __( 'You were promoted to an admin in %d groups', 'buddypress' ), (int)$total_items );
 				$filter = 'bp_groups_multiple_member_promoted_to_admin_notification';
 				$notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );
 				} else {
@@ -215,7 +215,7 @@
 				$text = sprintf( __( 'You were promoted to an admin in the group "%s"', 'buddypress' ), $group->name );
 				$filter = 'bp_groups_single_member_promoted_to_admin_notification';
 				$notification_link = $group_link . '?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
 				} else {
@@ -238,7 +238,7 @@
 				$text = sprintf( __( 'You were promoted to a mod in %d groups', 'buddypress' ), (int)$total_items );
 				$filter = 'bp_groups_multiple_member_promoted_to_mod_notification';
 				$notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );
 				} else {
@@ -251,7 +251,7 @@
 				$text = sprintf( __( 'You were promoted to a mod in the group "%s"', 'buddypress' ), $group->name );
 				$filter = 'bp_groups_single_member_promoted_to_mod_notification';
 				$notification_link = $group_link . '?n=1';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
 				} else {
@@ -266,15 +266,15 @@
 
 		case 'group_invite':
 			$group_id = $item_id;
-			$group = new BP_Groups_Group( $group_id );	
+			$group = new BP_Groups_Group( $group_id );
 			$group_link = bp_get_group_permalink( $group );
-			
+
 			$notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/invites/?n=1';
 
 			if ( (int)$total_items > 1 ) {
 				$text = sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int)$total_items );
 				$filter = 'bp_groups_multiple_group_invite_notification';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Group Invites', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );
 				} else {
@@ -286,7 +286,7 @@
 			} else {
 				$text = sprintf( __( 'You have an invitation to the group: %s', 'buddypress' ), $group->name );
 				$filter = 'bp_groups_single_group_invite_notification';
-				
+
 				if ( 'string' == $format ) {
 					return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
 				} else {
Index: bp-groups/bp-groups-classes.php
===================================================================
--- bp-groups/bp-groups-classes.php	(revision 4960)
+++ bp-groups/bp-groups-classes.php	(working copy)
@@ -293,7 +293,7 @@
 		if ( !empty( $include ) ) {
 			if ( is_array( $include ) )
 				$include = implode( ',', $include );
-				
+
 			$include = $wpdb->escape( $include );
 			$sql['include'] = " AND g.id IN ({$include})";
 		}
@@ -301,7 +301,7 @@
 		if ( !empty( $exclude ) ) {
 			if ( is_array( $exclude ) )
 				$exclude = implode( ',', $exclude );
-				
+
 			$exclude = $wpdb->escape( $exclude );
 			$sql['exclude'] = " AND g.id NOT IN ({$exclude})";
 		}
@@ -597,8 +597,8 @@
 
 		return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(id) FROM {$bp->groups->table_name_members} WHERE group_id = %d AND is_confirmed = 1 AND is_banned = 0", $group_id ) );
 	}
-	
-	
+
+
 	/**
 	 * Get a total count of all topics of a given status, across groups/forums
 	 *
@@ -610,39 +610,39 @@
 	 */
 	function get_global_topic_count( $status = 'public', $search_terms = false ) {
 		global $bbdb, $wpdb, $bp;
-		
+
 		switch ( $status ) {
 			case 'all' :
 				$status_sql = '';
 				break;
-				
+
 			case 'hidden' :
 				$status_sql = $wpdb->prepare( "AND g.status = 'hidden'" );
 				break;
-				
+
 			case 'private' :
 				$status_sql = $wpdb->prepare( "AND g.status = 'private'" );
 				break;
-				
+
 			case 'public' :
 			default :
 				$status_sql = $wpdb->prepare( "AND g.status = 'public'" );
 				break;
 		}
-		
+
 		$sql = array();
-		
+
 		$sql['select'] = "SELECT COUNT(t.topic_id)";
-		
+
 		$sql['from'] = "FROM {$bbdb->topics} AS t INNER JOIN {$bp->groups->table_name_groupmeta} AS gm ON t.forum_id = gm.meta_value INNER JOIN {$bp->groups->table_name} AS g ON gm.group_id = g.id";
-		
+
 		$sql['where'] = "WHERE gm.meta_key = 'forum_id' {$status_sql} AND t.topic_status = '0' AND t.topic_sticky != '2'";
-		
+
 		if ( $search_terms ) {
 			$st = like_escape( $search_terms );
 			$sql['where'] .= " AND (  t.topic_title LIKE '%{$st}%' )";
 		}
-		
+
 		return $wpdb->get_var( implode( ' ', $sql ) );
 	}
 }
@@ -666,7 +666,7 @@
 	function bp_groups_member( $user_id = 0, $group_id = 0, $id = false, $populate = true ) {
 		$this->__construct($user_id,$group_id,$id,$populate);
 	}
-	
+
 	function __construct( $user_id = 0, $group_id = 0, $id = false, $populate = true ) {
 		if ( $user_id && $group_id && !$id ) {
 			$this->user_id = $user_id;
@@ -771,7 +771,7 @@
 
 	function ban() {
 		global $bp;
-		
+
 		if ( $this->is_admin )
 			return false;
 
@@ -789,7 +789,7 @@
 
 	function unban() {
 		global $bp;
-		
+
 		if ( $this->is_admin )
 			return false;
 
@@ -803,7 +803,7 @@
 
 	function accept_invite() {
 		global $bp;
-		
+
 		$this->inviter_id    = 0;
 		$this->is_confirmed  = 1;
 		$this->date_modified = bp_core_current_time();
@@ -813,7 +813,7 @@
 
 	function accept_request() {
 		global $bp;
-		
+
 		$this->is_confirmed = 1;
 		$this->date_modified = bp_core_current_time();
 
@@ -957,9 +957,9 @@
 
 		if ( !$user_id )
 			return false;
-		
+
 		$sql = "SELECT id FROM {$bp->groups->table_name_members} WHERE user_id = %d AND group_id = %d AND is_confirmed = 0 AND inviter_id != 0";
-		
+
 		if ( 'sent' == $type )
 			$sql .= " AND invite_sent = 1";
 
@@ -1214,7 +1214,7 @@
 
 	function _register() {
 		global $bp;
-		
+
 		if ( !empty( $this->enable_create_step ) ) {
 			// Insert the group creation step for the new group extension
 			$bp->groups->group_creation_steps[$this->slug] = array( 'name' => $this->name, 'slug' => $this->slug, 'position' => $this->create_step_position );
@@ -1244,7 +1244,7 @@
 			if ( bp_is_groups_component() && $bp->is_single_item && ( !$bp->current_action || 'home' == $bp->current_action ) )
 				add_action( $this->display_hook, array( &$this, 'widget_display' ) );
 		}
-		
+
 		// Construct the admin edit tab for the new group extension
 		if ( !empty( $this->enable_edit_item ) && !empty( $bp->is_item_admin ) ) {
 			add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', '$selected = ""; if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '\">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 );
@@ -1283,4 +1283,4 @@
 	add_action( 'bp_init', create_function( '', '$extension = new ' . $group_extension_class . '; add_action( "bp_actions", array( &$extension, "_register" ), 8 );' ), 11 );
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-actions.php
===================================================================
--- bp-groups/bp-groups-actions.php	(revision 4960)
+++ bp-groups/bp-groups-actions.php	(working copy)
@@ -102,12 +102,12 @@
 				bp_core_add_message( __( 'There was an error saving group details, please try again.', 'buddypress' ), 'error' );
 				bp_core_redirect( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/step/' . $bp->groups->current_create_step . '/' );
 			}
-			
-			// Set the invite status			
+
+			// Set the invite status
 			// Checked against a whitelist for security
 			$allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) );
 			$invite_status	       = in_array( $_POST['group-invite-status'], (array)$allowed_invite_status ) ? $_POST['group-invite-status'] : 'members';
-			
+
 			groups_update_groupmeta( $bp->groups->new_group_id, 'invite_status', $invite_status );
 		}
 
Index: bp-groups/bp-groups-screens.php
===================================================================
--- bp-groups/bp-groups-screens.php	(revision 4960)
+++ bp-groups/bp-groups-screens.php	(working copy)
@@ -508,11 +508,11 @@
 		// If the edit form has been submitted, save the edited details
 		if ( isset( $_POST['save'] ) ) {
 			$enable_forum   = ( isset($_POST['group-show-forum'] ) ) ? 1 : 0;
-			
+
 			// Checked against a whitelist for security
 			$allowed_status = apply_filters( 'groups_allowed_status', array( 'public', 'private', 'hidden' ) );
 			$status         = ( in_array( $_POST['group-status'], (array)$allowed_status ) ) ? $_POST['group-status'] : 'public';
-			
+
 			// Checked against a whitelist for security
 			$allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) );
 			$invite_status	       = in_array( $_POST['group-invite-status'], (array)$allowed_invite_status ) ? $_POST['group-invite-status'] : 'members';
@@ -614,7 +614,7 @@
 			if ( bp_is_action_variable( 'promote', 1 ) && ( bp_is_action_variable( 'mod', 2 ) || bp_is_action_variable( 'admin', 2 ) ) && is_numeric( bp_action_variable( 3 ) ) ) {
 				$user_id = bp_action_variable( 3 );
 				$status  = bp_action_variable( 2 );
-				
+
 				// Check the nonce first.
 				if ( !check_admin_referer( 'groups_promote_member' ) )
 					return false;
@@ -652,7 +652,7 @@
 
 			if ( bp_is_action_variable( 'ban', 1 ) && is_numeric( bp_action_variable( 2 ) ) ) {
 				$user_id = bp_action_variable( 2 );
-				
+
 				// Check the nonce first.
 				if ( !check_admin_referer( 'groups_ban_member' ) )
 					return false;
@@ -670,7 +670,7 @@
 
 			if ( bp_is_action_variable( 'unban', 1 ) && is_numeric( bp_action_variable( 2 ) ) ) {
 				$user_id = bp_action_variable( 2 );
-				
+
 				// Check the nonce first.
 				if ( !check_admin_referer( 'groups_unban_member' ) )
 					return false;
@@ -688,7 +688,7 @@
 
 			if ( bp_is_action_variable( 'remove', 1 ) && is_numeric( bp_action_variable( 2 ) ) ) {
 				$user_id = bp_action_variable( 2 );
-				
+
 				// Check the nonce first.
 				if ( !check_admin_referer( 'groups_remove_member' ) )
 					return false;
Index: bp-groups/bp-groups-cache.php
===================================================================
--- bp-groups/bp-groups-cache.php	(revision 4960)
+++ bp-groups/bp-groups-cache.php	(working copy)
@@ -49,4 +49,4 @@
 add_action( 'groups_created_group',              'bp_core_clear_cache' );
 add_action( 'groups_group_avatar_updated',       'bp_core_clear_cache' );
 
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-loader.php
===================================================================
--- bp-groups/bp-groups-loader.php	(revision 4960)
+++ bp-groups/bp-groups-loader.php	(working copy)
@@ -93,7 +93,7 @@
 		if ( bp_is_groups_component() && $group_id = BP_Groups_Group::group_exists( bp_current_action() ) ) {
 
 			$bp->is_single_item  = true;
-			$current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' ); 
+			$current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' );
 			$this->current_group = apply_filters( 'bp_groups_current_group_object', new $current_group_class( $group_id ) );
 
 			// When in a single group, the first action is bumped down one because of the
@@ -162,12 +162,12 @@
 			bp_do_404();
 			return;
 		}
-		
+
 		// Group access control
 		if ( bp_is_groups_component() && !empty( $this->current_group ) && !empty( $bp->current_action ) && !$this->current_group->user_has_access ) {
 			if ( is_user_logged_in() ) {
 				// Off-limits to this user. Throw an error and redirect to the
-				// group's home page			
+				// group's home page
 				bp_core_no_access( array(
 					'message'  => __( 'You do not have access to this group.', 'buddypress' ),
 					'root'     => bp_get_group_permalink( $bp->groups->current_group ),
@@ -461,4 +461,4 @@
 // Create the groups component
 $bp->groups = new BP_Groups_Component();
 
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-widgets.php
===================================================================
--- bp-groups/bp-groups-widgets.php	(revision 4960)
+++ bp-groups/bp-groups-widgets.php	(working copy)
@@ -190,4 +190,4 @@
 
 }
 add_action( 'wp_ajax_widget_groups_list', 'groups_ajax_widget_groups_list' );
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-functions.php
===================================================================
--- bp-groups/bp-groups-functions.php	(revision 4960)
+++ bp-groups/bp-groups-functions.php	(working copy)
@@ -426,9 +426,9 @@
  */
 function groups_get_current_group() {
 	global $bp;
-	
+
 	$current_group = isset( $bp->groups->current_group ) ? $bp->groups->current_group : false;
-	
+
 	return apply_filters( 'groups_get_current_group', $current_group );
 }
 
@@ -966,4 +966,4 @@
 add_action( 'delete_user',       'groups_remove_data_for_user' );
 add_action( 'bp_make_spam_user', 'groups_remove_data_for_user' );
 
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-filters.php
===================================================================
--- bp-groups/bp-groups-filters.php	(revision 4960)
+++ bp-groups/bp-groups-filters.php	(working copy)
@@ -79,9 +79,9 @@
 
 function groups_add_forum_tables_sql( $sql = '' ) {
 	global $bp;
-	
+
 	$sql .= 'JOIN ' . $bp->groups->table_name . ' AS g LEFT JOIN ' . $bp->groups->table_name_groupmeta . ' AS gm ON g.id = gm.group_id ';
-	
+
 	return $sql;
 }
 
Index: bp-groups/bp-groups-notifications.php
===================================================================
--- bp-groups/bp-groups-notifications.php	(revision 4960)
+++ bp-groups/bp-groups-notifications.php	(working copy)
@@ -246,9 +246,9 @@
 		$message = apply_filters_ref_array( 'groups_notification_group_invites_message', array( $message, &$group, $inviter_name, $inviter_link, $invites_link, $group_link, $settings_link ) );
 
 		wp_mail( $to, $subject, $message );
-				
+
 		do_action( 'bp_groups_sent_invited_email', $invited_user_id, $subject, $message, $group );
 	}
 }
 
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-template.php
===================================================================
--- bp-groups/bp-groups-template.php	(revision 4960)
+++ bp-groups/bp-groups-template.php	(working copy)
@@ -2853,4 +2853,4 @@
 		if ( !empty( $url ) )
 			return $url;
 	}
-?>
+?>
\ No newline at end of file
Index: bp-groups/bp-groups-forums.php
===================================================================
--- bp-groups/bp-groups-forums.php	(revision 4960)
+++ bp-groups/bp-groups-forums.php	(working copy)
@@ -213,7 +213,7 @@
 		if ( bp_is_active( 'activity' ) ) {
 			// The activity item for the initial topic
 			bp_activity_delete( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $topic_id, 'component' => $bp->groups->id, 'type' => 'new_forum_topic' ) );
-			
+
 			// The activity item for each post
 			foreach ( (array)$posts as $post ) {
 				bp_activity_delete( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $post->post_id, 'component' => $bp->groups->id, 'type' => 'new_forum_post' ) );
@@ -273,4 +273,4 @@
 	return apply_filters( 'groups_total_forum_topic_count', BP_Groups_Group::get_global_topic_count( $status, $search_terms ) );
 }
 
-?>
+?>
\ No newline at end of file
