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
Add 'bp-ajax-message' class to message divs returned in AJAX responses.

This allows for better styling of these dynamically created items.

Fixes #5918.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9058 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
XProfile: Add missing error hook to the "URL" profile field type.

Fixes #5886 (trunk).

Props unsalkorkmaz.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9060 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Tests: update activity tests to use `bp_activity_get_permalink` to get a link to an activity item rather than manually constructing a link from an activity ID.

See #5926

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9061 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Activity: when redirecting unauthenticated users away from a single activity permalink, make sure the value of the `redirect_to` parameter has been URL encoded.

Also improves the readability of this section of code by moving it out of the ternary operator.

See #5926

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9062 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Activity: refactor part of `bp_get_activity_latest_update` to use `bp_activity_get_permalink` to get a link to an activity item rather than manually constructing the link.

See #5926

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9063 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Make sure themes can override BuddyPress stylesheet.

Since version 2.1, BuddyPress minified stylesheet is used if SCRIPT_DEBUG is not set. This was preventing themes to override the stylesheet using a file named buddypress.css. This patch make sure that if a buddypress.css file is located in one of the allowed css subfolder it will override the one provided by BuddyPress.

props r-a-y, shpitzyl

Fixes #5888 (trunk)

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9065 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add missing bbPress external on trunk.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9072 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Better detection for false positives in meta SQL filters.

Our wrappers for WP's _metadata() functions require some filtering of the SQL
string (to change a column name and, in the case of xprofile, to add an
'object_type' clause). Our str_replace() logic is too generous, creating the
possibility of matching quoted text, as when the meta value contains the string
'WHERE'.

This changeset modifies the filters so that quoted content is swapped out with
placeholders before we run our search-and-replace.

See #5919.
Props tometzky for feedback.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9073 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use bp_blog_class() to output row classes in blogs-loop.php.

Props lenasterg.
Fixes ##5927.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9074 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Hooks for xprofile Add Field screen.

Until this screen uses the add_meta_box() API, these hooks will allow plugin
devs to add custom items to the xprofile field creation process.

Props svenl77.
Fixes #5917.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9075 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Make "no members found" message on group members page more general.

'No members were found.' applies both when the group has no members and when
a search within group members returns no members.

Fixes #5935.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9076 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Bump version in bp-loader.php stub to 2.2-alpha.

Props ev3rywh3re.
Fixes #5937.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9077 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add hook documentation to bp-activity-admin.php.

Props tw2113.
See #5938.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9078 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Hook documentation for bp-activity-actions.php.

Props tw2113, espellcaste.
Fixes #5936.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9079 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
travis-ci: specify IRC server/channel via environment variable configured on travis-ci.org.

This is to prevent our IRC dev channel from being notified when other people run BP's unit tests with travis-ci, via their own Github forks.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9080 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
travis-ci: second attempt at integrating a travis-ci.org system env var into our travis build configuration.

See r9080 for previous attempt.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9081 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix group meta query SQL manipulation.

The wildcard operators were acting too greedily, preventing some JOIN clauses
from being recognized and resulting in invalid SQL syntax. This problem had
previously been masked by ideosyncracies of WP's WP_Meta_Query SQL syntax,
which changed in [WP29887].

This change should be considered a band-aid fix for what is already a band-aid
fix. The proper resolution for this issue is to migrate away from the comma
syntax for JOINs used in BP_Groups_Group. See #5874, #5451.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9082 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
travis-ci: specify IRC server/channel for notifications via encrypted key instead of server env var.

travis-ci.org support has told us that notifications are not sent from the build VM which runs our test script (which is where the env variables are set), and are instead from a seperate component which doesn't take the env vars into account. This is why the previous two attempts on r9080 and r9081 did not work.

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