Change 'Delete Message' to 'Delete Conversation' on message delete title button.

This makes it clearer what the button actually does.

Props SGr33n, joshshashaty.
Fixes #5908.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9089 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix typo in Gruntfile.js.

Props whyisjake.
Fixes #5962.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9090 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove page template name check in `bp_is_current_component()` introduced in r3884, fixing potential collisions causing unexpected template output or redirections.

Props pro120. Fixes #5721.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9091 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove '.min' from asset when locating bp-legacy assets.

This ensures that the assets can be located when running from /src/ when the
minified files have not been built.

Props nofearinc.
Fixes #5963.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9092 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Tests: make sure globals are reset when the `go_to` helper method is used to simulate a GET request.

This fixes a problem where `go_to` is used multiple times in one test, and the globals end up with incorrect/unexpected values for the second call; a situation which is likely to occur very infrequently.

Fixes #5965

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

Props nofearinc.
Fixes #5964.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9094 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Rework the building of the recipient list on single messages.

* Deprecate bp_get_the_thread_recipients().
* Move the recipient count logic into the `members/single/messages/single.php` template.
* Introduce `bp_get_thread_recipients_count()` and `bp_get_thread_recipients_list()` to separate the logic of the deprecated function.

Props joshshashaty, Clean-Cole.
Fixes #5327.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9095 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Members: fix PHP notice on avatar upload screen after account registration.

Fixes #5899, props thebrandonallen and imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9096 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Mentions: update to latest version of ext. libs.

* Update atwho JS to rev 0f7ba07 (v0.5.1+).
* Update caret JS to rev 736a7eb (v0.2.0+).

See #5969

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9097 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Mentions: backport upstream JS for contentEditable/TinyMCE support fixes.

See #5969

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9098 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Mentions: adjustments for narrow-width displays.

For displays <= 900 pixels wide, the display name of the user is now
shown.

For displays <= 400 pixels wide, the picker UI expands to take up the
full width of the screen.

Ported from Automattic's O2 team's implementation of the At.js library.
See #5969

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9099 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Mentions: load in the dashboard's Visual editor.

Inspired by Automattic's O2 team's implementation of the At.js library
inside publishing screens.

Also updated RTL CSS missed from a previous commit.

Fixes #5969

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9100 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Mentions: for pre-cached result, use displayname if profile sync is enabled.

This should cut down on numbers of SQL queries made in certain
situations where a user on a site has many friends (whose user details
are not in WP’s object cache).

See #5950

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9101 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Mentions: don't prime mention results if the site/user has many users/friends.

Sites with huge amounts of users (and therefore probably many potential
friendships) can cause the primed result generation to be slow due to
the number of potential user name lookups/queries made.

Multisite has a function to help us decide if it’s a large network, but
it’s not available for regular WordPress, so we also check the logged
in user’s total friend count. (150 is Dunbar's number.)

In conjunction with the previous commit, this change should help make
the pre-cached result generation more performant.

Fixes #5950. Props imath for original patch.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9102 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core: Page title: use correct i18n function when generating member page titles.

See #5838

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9103 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core: Page title: code standards improvements.

See #5838

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9104 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core: Page title: remove component name from members component item pages. Additional screens introduced by other plugins have been similarily changes.

This simplifies the <title> for the member profile screens; the longer the title, the less likely it will fit in the narrow space afforded by modern web browsers. I expect most people will only have one tab open for a one member (for example); it's an edge case to have multiple tabs open on different parts of the same user's profile for most/general use.

See #5838, props sooskriszta for the initial patch.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9105 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core: Page title: don't hardcode the word separator for some of our page titles.

Fixes #5838

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9106 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use `assertEqualSets()` in group-related tests.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9107 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core: Page title: make the 2nd/3rd params for `bp_modify_page_title` optional and provide defaults.

Prevents PHP Warnings caused by other plugins/themes.

Fixes #5933, props imath and whyisjake.

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