Revert r8183; broke unit tests as these functions can be called after headers are sent (which needs further investigation in a separate ticket.)

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8185 cdf35c40-ae34-48e0-9cc9-0c9da1808c22