Revert r7695. This is now handled in a lower level Notifications method. See #5300.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7707 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Revert r7698. Causing profile fields to repeat themselves in the loop. Needs unit tests before revisiting. See #5303.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7708 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Revert r7707, and add inline documentation to BP_Notifications_Notification:get_total_count(). See #5303.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7709 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
xprofile: remove unnecessary `$wpdb->prepare` in `BP_XProfile_ProfileData->get_random()`.

Props graham-washbrook for initial patch, fixes #5309

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7710 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Merge remote-tracking branch 'upstream/master' into xprofile-types