Don't reproduce the activity-form-loop on an AJAX request

Fixes #5329

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8155 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Run stripslashes filter on activity strings earlier than priority 10

Running stripslashes() on priority 10 caused race conditions with other filters
on the same content. This, in turn, causes conflicts with wptexturize(), which
cannot properly parse certain character combinations due to the incorrect
presence of escaping slashes. This problem exhibited itself most obviously
with the use of guillemet-style quotation marks (the slashes fooled
wptexturize() into thinking that the opening quote was actually the closing
one), but could also occur with other formatting rules.

Because the requirement to stripslashes() is due to BuddyPress's incorrect
escaping of much input content, we work around the race condition by running
stripslashes_deep() earlier than priority 10. This ensures that plugins hooking
to these filters with the default priority can expect properly formatted and
sanitized content. See #2776.

Props chouf1, imath, needle

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8156 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Improve validation and documentation for groups_create_group() and BP_Groups_Group::save()

Fixes #5214

Props r-a-y

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8157 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't register the bp-themes themes directory if bp-default is found elsewhere in the installation

This will be part of the migration path away from the packaged version of
bp-default. bp-default will be added to the wordpress.org theme repository with
a higher version number, prompting an upgrade that will result in an
installation into the standard WP themes directory. Once that happens, most
installations will no longer be reliant on the version of bp-default packaged
with BuddyPress.

See #5212

Props DJPaul

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