On members directory, make sure search terms containing spaces are well transported in pagination links.

When a profile field output containing spaces was clicked, the member search functionality wasn't creating consistent pagination links. This behavior was introduced by r8928. Patch is fixing the issue and also includes a unit test.

props boonebgorges

Fixes #5898

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9045 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Some improvements to inline documentation in bp-groups-template.php

See #5022

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9046 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use _n() for translations in bp_get_group_member_count()

The previous technique (manually switching between 1 and not-1) does not
provide adequate internationalizability for all languages.

Adds unit tests.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9047 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Some improved documentation in bp-groups-template.php

See #5022

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9048 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add 'group-$group_slug' body class when viewing a group page.

Fixes #5848

Props hnla

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9049 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add 'b', 'i', and 'a:title' to allowedtags in bp-activity

Fixes #5835

Props hnla

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9050 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
When using BP_User_Query with meta_key and meta_value arguments, make sure no results are displayed if no user match the meta arguments.

Fixes #5904

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9051 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Make sure the parent activity exists before adding a comment to it.

There can be a case when the activity displayed in the stream has been deleted by another user. Adding a comment should not be possible for this particular case as the parent activity does not exist anymore. The patch is adding a check on the {{{date_recorded}}} field of the parent activity before adding a comment. If it is not set, then false is returned and a default message is displayed to the user by {{{bp_legacy_theme_new_activity_comment()}}}. As boonebgorges, some improvements on the message can still be added.

See #5907

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9052 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
During unit tests, use non-SSL mirror for Trac ticket cache when openssl is not enabled

This change is necessary to ensure that tests against open tickets are
properly skipped when running the test suite in environment where openssl is
not available (due to a change in wordpress.org infrastructure that forces all
traffic over SSL). It's primarily an issue on travis-ci's PHP 5.2 build, but
could arise in any situation where PHP was not built with openssl support.

This fallback can be removed when PHP 5.2.x support is dropped at some point in
the future.

Fixes #5910

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9053 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Better error message when attempting to reply to an activity item that has been deleted

Fixes #5907

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9054 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
bp-legacy: Properly clear cookies when logging out.

When a user logs out, buddypress.js attempts to clear all cookies. However,
this now fails with BP 2.1.

The problem is when we enqueued our JS assets (#5208), we upgraded
jquery.cookie to 1.4.1.  v1.4.1 uses a new routine to clear cookies.

This commit updates our clear cookies calls to this updated routine.

Fixes #5909 (trunk).

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9056 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Improved documentation in bp-groups-template.php

See #5022

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