Index: src/bp-xprofile/classes/class-bp-xprofile-group.php
===================================================================
--- src/bp-xprofile/classes/class-bp-xprofile-group.php	(revision 13468)
+++ src/bp-xprofile/classes/class-bp-xprofile-group.php	(working copy)
@@ -84,8 +84,6 @@
 	 *
 	 * @since 1.0.0
 	 *
-	 * @global wpdb $wpdb WordPress database object.
-	 *
 	 * @param int $id Field group ID.
 	 * @return boolean
 	 */
@@ -467,6 +465,8 @@
 	 *
 	 * @since 5.0.0
 	 * @since 11.0.0 `$profile_group_id` accepts an array of profile group ids.
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param array $args {
 	 *    Array of optional arguments.
@@ -524,6 +524,8 @@
 	 * Gets group field IDs, based on passed parameters.
 	 *
 	 * @since 5.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param array $group_ids Array of group IDs.
 	 * @param array $args {
@@ -616,6 +618,8 @@
 	 * Get data about a set of groups, based on IDs.
 	 *
 	 * @since 2.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param array $group_ids Array of IDs.
 	 * @return array
@@ -786,6 +790,8 @@
 	 * Fetch the admin-set preferences for all fields.
 	 *
 	 * @since 1.6.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @return array $default_visibility_levels An array, keyed by field_id, of default
 	 *                                          visibility level + allow_custom
Index: src/bp-xprofile/classes/class-bp-xprofile-meta-query.php
===================================================================
--- src/bp-xprofile/classes/class-bp-xprofile-meta-query.php	(revision 13468)
+++ src/bp-xprofile/classes/class-bp-xprofile-meta-query.php	(working copy)
@@ -152,6 +152,8 @@
 	 * "First-order" means that it's an array with a 'key' or 'value'.
 	 *
 	 * @since 2.3.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param array  $clause       Query clause, passed by reference.
 	 * @param array  $parent_query Parent query array.
Index: src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
===================================================================
--- src/bp-xprofile/classes/class-bp-xprofile-profiledata.php	(revision 13468)
+++ src/bp-xprofile/classes/class-bp-xprofile-profiledata.php	(working copy)
@@ -76,6 +76,8 @@
 	 * Populates the XProfile profile data.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int $field_id Field ID to populate.
 	 * @param int $user_id  User ID to populate for.
@@ -175,6 +177,8 @@
 	 * Save the data for the XProfile field.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @return bool
 	 */
@@ -317,6 +321,8 @@
 	 * @since 2.0.0
 	 * @since 8.0.0 Checks if a null field data is an xProfile WP Field.
 	 *              Adds a new parameter `$field_type_objects` to pass the list of field type objects.
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int   $user_id            ID of user whose data is being queried.
 	 * @param array $field_ids          Array of field IDs to query for.
@@ -474,6 +480,8 @@
 	 * Get the user's field data id by the id of the xprofile field.
 	 *
 	 * @since 1.6.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int $field_id Field ID being queried for.
 	 * @param int $user_id  User ID associated with field.
@@ -507,6 +515,8 @@
 	 *
 	 * @since 1.0.0
 	 * @since 8.0.0 Checks if a null field data is an xProfile WP Field.
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int            $field_id ID of the field.
 	 * @param int|array|null $user_ids ID or IDs of user(s).
@@ -615,6 +625,9 @@
 	 * Get profile field values by field name and user ID.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
+	 * 
 	 * @deprecated 8.0.0 This function is not used anymore.
 	 *
 	 * @param array|string $fields  Field(s) to get.
@@ -681,6 +694,8 @@
 	 * Delete field.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int $field_id ID of the field to delete.
 	 * @return bool
@@ -701,6 +716,8 @@
 	 * Get time for last XProfile field data update by user.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int $user_id User ID to get time for.
 	 * @return null|string
@@ -719,6 +736,8 @@
 	 * Delete all data for provided user ID.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int $user_id User ID to remove data for.
 	 * @return false|int
@@ -745,6 +764,8 @@
 	 * Get random field type by user ID.
 	 *
 	 * @since 1.0.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param int    $user_id          User ID to query for.
 	 * @param string $exclude_fullname SQL portion used to exclude by field ID.
Index: src/bp-xprofile/classes/class-bp-xprofile-query.php
===================================================================
--- src/bp-xprofile/classes/class-bp-xprofile-query.php	(revision 13468)
+++ src/bp-xprofile/classes/class-bp-xprofile-query.php	(working copy)
@@ -340,6 +340,8 @@
 	 * "First-order" means that it's an array with a 'field' or 'value'.
 	 *
 	 * @since 2.2.0
+	 * 
+	 * @global wpdb $wpdb WordPress database object.
 	 *
 	 * @param array $clause       Query clause.
 	 * @param array $parent_query Parent query array.
