Index: src/bp-xprofile/bp-xprofile-filters.php
===================================================================
--- src/bp-xprofile/bp-xprofile-filters.php	(revision 13468)
+++ src/bp-xprofile/bp-xprofile-filters.php	(working copy)
@@ -563,6 +563,8 @@
  * Filter meta queries to modify for the xprofile data schema.
  *
  * @since 2.0.0
+ * 
+ * @global wpdb $wpdb WordPress database object.
  *
  * @access private Do not use.
  *
Index: src/bp-xprofile/bp-xprofile-functions.php
===================================================================
--- src/bp-xprofile/bp-xprofile-functions.php	(revision 13468)
+++ src/bp-xprofile/bp-xprofile-functions.php	(working copy)
@@ -762,6 +762,8 @@
  * When search_terms are passed to BP_User_Query, search against xprofile fields.
  *
  * @since 2.0.0
+ * 
+ * @global wpdb $wpdb WordPress database object.
  *
  * @param array         $sql   Clauses in the user_id SQL query.
  * @param BP_User_Query $query User query object.
@@ -960,6 +962,8 @@
  * Delete a piece of xprofile metadata.
  *
  * @since 1.5.0
+ * 
+ * @global wpdb $wpdb WordPress database object.
  *
  * @param int         $object_id   ID of the object the metadata belongs to.
  * @param string      $object_type Type of object. 'group', 'field', or 'data'.
@@ -1141,6 +1145,8 @@
  * Return the field ID for the Full Name xprofile field.
  *
  * @since 2.0.0
+ * 
+ * @global wpdb $wpdb WordPress database object.
  *
  * @return int Field ID.
  */
@@ -1470,6 +1476,8 @@
  * Returns the signup field IDs.
  *
  * @since 8.0.0
+ * 
+ * @global wpdb $wpdb WordPress database object.
  *
  * @return int[] The signup field IDs.
  */
Index: src/bp-xprofile/bp-xprofile-template.php
===================================================================
--- src/bp-xprofile/bp-xprofile-template.php	(revision 13468)
+++ src/bp-xprofile/bp-xprofile-template.php	(working copy)
@@ -97,6 +97,8 @@
  * Start off the profile groups.
  *
  * @since 1.0.0
+ * 
+ * @global object $profile_template
  *
  * @return mixed
  */
@@ -109,6 +111,8 @@
  * Set up the profile groups.
  *
  * @since 1.0.0
+ * 
+ * @global object $profile_template
  *
  * @return mixed
  */
@@ -121,6 +125,8 @@
  * Whether or not the group has fields to display.
  *
  * @since 1.0.0
+ * 
+ * @global object $profile_template
  *
  * @return mixed
  */
@@ -146,6 +152,8 @@
 	 * Return the class attribute for a field.
 	 *
 	 * @since 1.1.0
+	 * 
+	 * @global object $profile_template
 	 *
 	 * @param string|bool $class Extra classes to append to class attribute.
 	 * @return string
@@ -450,6 +458,8 @@
 	 * Generate a comma-separated list of field IDs that are to be submitted on profile edit.
 	 *
 	 * @since 2.1.0
+	 * 
+	 * @global object $profile_template
 	 *
 	 * @return string
 	 */
@@ -479,6 +489,8 @@
  * Return the XProfile fields.
  *
  * @since 1.0.0
+ * 
+ * @global object $profile_template
  *
  * @return mixed
  */
@@ -491,6 +503,8 @@
  * Sets up the XProfile field.
  *
  * @since 1.0.0
+ * 
+ * @global object $profile_template
  *
  * @return mixed
  */
Index: src/bp-xprofile/classes/class-bp-xprofile-data-template.php
===================================================================
--- src/bp-xprofile/classes/class-bp-xprofile-data-template.php	(revision 13468)
+++ src/bp-xprofile/classes/class-bp-xprofile-data-template.php	(working copy)
@@ -301,6 +301,9 @@
 	 * Sets up the profile group.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global $group.
+	 * 
 	 */
 	public function the_profile_group() {
 		global $group;
@@ -392,6 +395,9 @@
 	 * Set up the profile fields.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global $field.
+	 * 
 	 */
 	public function the_profile_field() {
 		global $field;
Index: src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php
===================================================================
--- src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php	(revision 13468)
+++ src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php	(working copy)
@@ -155,6 +155,8 @@
 	 * to include the WordPress field value into the xProfile fields loop.
 	 *
 	 * @since 8.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param integer $user_id The user ID.
 	 * @param integer $field_id The xProfile field ID.
Index: src/bp-xprofile/classes/class-bp-xprofile-field.php
===================================================================
--- src/bp-xprofile/classes/class-bp-xprofile-field.php	(revision 13468)
+++ src/bp-xprofile/classes/class-bp-xprofile-field.php	(working copy)
@@ -254,6 +254,8 @@
 	 *
 	 * @since 2.4.0
 	 * @since 2.8.0 Added `$user_id` and `$get_data` parameters.
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @static
 	 *
@@ -926,6 +928,8 @@
 
 	/**
 	 * Get the type for provided field ID.
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int $field_id Field ID to get type of.
 	 * @return bool|null|string
@@ -1058,6 +1062,8 @@
 	 * Gets the IDs of fields applicable for a given member type or array of member types.
 	 *
 	 * @since 2.4.0
+	 * 
+	 * global wpdb $wpdb WordPress database object.
 	 *
 	 * @param string|array $member_types Member type or array of member types. Use 'any' to return unrestricted
 	 *                                   fields (those available for anyone, regardless of member type).
