Move .confirm javascript to a separate, properly enqueued file

This improves our compliance with WP standards, improves our integration with
caching systems, and allows plugins to manage the conditional loading of
scripts.

Fixes #5209

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8091 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r8091

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8092 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove Invite noscript support for group invitations screens

Fixes #5281

Props imath

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8094 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
When deleting activity items, delete corresponding notifications

See #5289

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8095 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r8095

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8096 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
When demoting a member in a group, delete corresponding promotion notifications

See #5289

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8097 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Tests: rename PHPUnit config file to phpunit.xml.dist

PHPUnit supports config files with both these names, but will use phpunit.xml over the .dist version.
Renaming our file lets users add/edit their own phpunit.xml without editing a BuddyPress core file.


git-svn-id: https://buddypress.svn.wordpress.org/trunk@8098 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
When a message is deleted, delete corresponding notifications

Fixes #5289

Props imath, henrywright

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8099 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Disable duplicate notification creation by default, and introduce 'allow_duplicate' param for override

Generally, it's undesirable to have duplicate notifications for a given
user-item-secondary_item-component-action combination (as when, say, someone
mentions you many times in a single message thread). This changeset introduces
duplicate protection, which can be overridden by passing the 'allow_duplicate'
param to bp_notifications_add_notification().

Fixes #5297

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8100 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r8100

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8101 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix unit test to ensure no duplicate notifications are created

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8102 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Friends: Add cache file to component loader.

This file was never included during the BP component API refactor
from r3917.

See #5435.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8103 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r8103

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8104 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Cache the friendship request user IDs for a given user.

This commit:
- Caches calls to BP_Friends_Friendship::get_friendship_request_user_ids()
- Invalidates the friend request cache when a friendship is saved or removed
- Adds unit tests

See #5435, #5414

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8105 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
In BP_UnitTestCase::create_user(), make sure to pass through parsed arguments

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8106 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Update BP_UnitTestCase::go_to() for WP 3.9 trunk

WordPress 3.9 will introduce an overhauled method for determining the current
network and site when running multisite. The current changeset introduces
conditional logic that works properly with the new multisite routing methods.

A couple of specific tests will need updates after this commit.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8107 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use go_to( '/' ) instead of go_to_root() in testcases

There is a strange bug in get_blog_option() that is causing errors to be
thrown when using go_to_root().

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8108 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Adds some @group tags for testcases

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8109 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
In bp_core_ajax_url() tests, narrow the scope of the blog switch

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