Index: bp-core/bp-core-functions.php
===================================================================
--- bp-core/bp-core-functions.php	(revision 4160)
+++ bp-core/bp-core-functions.php	(working copy)
@@ -762,6 +762,28 @@ function bp_core_create_root_component_page() {
 	bp_core_update_page_meta( $page_ids );
 }
 
+/**
+ * Is this BP_ROOT_BLOG?
+ *
+ * Checks against $wpdb->blogid, which provides greater support for switch_to_blog(). Always returns
+ * true on non-multisite installations.
+ *
+ * @package BuddyPress
+ * @since 1.3
+ *
+ * @return bool $is_root_blog Returns true if this is BP_ROOT_BLOG.
+ */
+function bp_is_root_blog() {
+	global $wpdb;
+	
+	$is_root_blog = true;
+	
+	if ( is_multisite() && $wpdb->blogid != BP_ROOT_BLOG )
+		$is_root_blog = false;
+	
+	return apply_filters( 'bp_is_root_blog', $is_root_blog );
+}
+
 /** Global Manipulators *******************************************************/
 
 /**
