Blogs: Check if activity component is active before using activity meta functions.

Previously, r8944 used some functions to mirror the blog post title to the
activity meta table.  However, a check was not made to determine if the
activity component was active.  This caused a fatal error for sites that
have the activity component disabled.

Fixes #5897 (trunk).

Anti-props r-a-y.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9039 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Settings: Fix email change verification.

Fixes #5903 (trunk).

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9041 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Activity: Make sure a non-admin can delete their own activity.

Changes in r8697 broke this functionality due to a strict type check. The
activity user ID is a string, while the logged-in user is an integer.

Commit fixes this by typecasting the activity user ID as an integer and
adds a unit test.

Fixes #5900 (trunk).

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9043 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
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
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