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