Imported from http://svn.buddypress.org/tags/1.7.3/