Add linebreak when dying out of test suite

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7423 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Better backward compatibility for tests configuration

Improved support for the old WP_TESTS_DIR environment variable, in particular
when pointing this environment variable toward the new develop.svn.wordpress.org
configuration.

See #5200

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7424 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add @expectedDeprecated comments to specific tests

The develop.svn.wordpress.org setup requires these flags in order to prevent
tests from failing when calling a deprecated function.

Fixes #5201

Props ericlewis

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7425 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Introduce bp_alpha_sort_by_key()

This new utility function allows an array of complex items (objects or arrays)
to be sorted alphabetically, according to a specified value in each item. For
example, sort an array of user objects alphabetically by display_name:

    $sorted_users = bp_alpha_sort_by_key( $users, 'display_name' );

See #5122

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7426 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Introduce a BuddyPress links box to nav-menus.php

The new BuddyPress metabox on Dashboard > Appearance > Menus allows site
administrators to build navigation menus that include dynamic, user-specific
BuddyPress links. Features:

- Separate sets of links for logged-in and logged-out users.
- Logged-in user links are automatically generated based on the logged-in user.
  For example, adding a 'Settings' item from the BuddyPress menu will create
  a menu item that points to the logged-in user's Settings page, and will not
  be shown to logged-out visitors.
- The list of available Logged-In links is automatically populated with
  all components that are registered in the BuddyPress navigation (ie, those
  items that are visible as top-level nav links when viewing a user's profile).
- Log In and Register links are visible only to logged-out users.

Fixes #5122

Props imath, r-a-y

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