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