Improve `<label>` markup for mesage search form.

* Associate the label properly with the labeled element.
* Add bp-screen-reader-text class for better consistency with other similar text in BP templates.

Props hnla.
Fixes #6010.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9240 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Make sure activities about a friendship are removed when this friendship is cancelled

Fixes #6055

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9241 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core, Suggestions: use `bp_parse_args` to pre-filter `$args` for `bp_core_get_suggestions`.

See #5934

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9242 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Suggestions: move the blog checks in `bp_activity_maybe_load_mentions_scripts` to a filter in the core component.

This reorganisation keeps the component-specific mentions checks in those specific components, rather than bundling everything into the Activity component as it had been.

See #5934

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9243 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Templates: add class to bp-legacy's single forum reply template (legacy bbPress) to enable @mentions.

Further core changes are required before this will work. See #5934

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9244 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Revert r9244: "Templates: add class to bp-legacy's single forum reply template (legacy bbPress) to enable @mentions."

Further consideration is needed before adding features to the legacy Group Forums support. See #5934


git-svn-id: https://buddypress.svn.wordpress.org/trunk@9245 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Update atwho.js and caret.js to versions 0.5.2 and 0.2.1, respectively.

These libraries are used in the @mentions suggestions UI.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9246 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Make sure custom language files (if they exist) are taking precedence over GlotPress language packs

There can be cases where a community needs cutom language files. In order to make sure these custom language files are loaded, BuddyPress will first check 2 locations before loading the GlotPress language packs :
- {{{WP_LANG_DIR . '/buddypress'}}}
- {{{WP_LANG_DIR}}}

Using the {{{WP_LANG_DIR . '/buddypress'}}} location for the custom language files avoids the mo file name to be listed into the site's language setting of the WordPress general options.

We are also introducing a new filter {{{'buddypress_locale_locations'}}} so that it's possible to add a custom location to the ones listed above.

Props r-a-y, boonebgorges,danbp,DJPaul

Fixes #5887

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9247 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Messages: update autocomplete script to better handle long cookie values.

See #4606 for previous similiar fixes.

Fixes #5959, props psycleuk

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9248 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Merge branch 'master' of https://github.com/buddypress/BuddyPress