Switch to git checkouts of WP for Travis CI tests

This change results in faster build time

See #5708

Props netweb

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8510 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove "prev" and "next" links when on a BuddyPress page.

WordPress injects these links in the <head> of each WordPress post.
However, BuddyPress doesn't adhere to these links.  These links also take
two DB queries on each page load and are uncached.

Therefore, this commit removes these links.

Fixes #4981.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8511 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix Travis CI tests for PHP 5.2

PHP 5.2 tests have been broken on Travis CI since r8017, the switch to using
WP's "develop" suite instead of the old wp-tests repo. This changeset fixes
these builds by making the following changes:

- Better consistency with the use of environment variables (swap out the old
  WP_CORE_DIR for WP_DEVELOP_DIR, which is what BP itself expects when setting
  up PHPUnit)
- Use of `export` when creating the environment variable, to ensure that PHP
  has access to it across shell sessions

Hat tip to netweb for an initial patch addressing this issue

See #5708

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8512 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
In Travis CI tests, set fast_finish flag to true

This change allows a build to be marked as failed as soon as a single job in
the build matrix has failed, providing faster feedback for devs.

See #5708

Props netweb

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8513 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Check `BP_User_Query` when using `friends_check_friendship_status()`.

Previously, `friends_check_friendship_status()` did not reference the data
already queried in the members loop via `BP_User_Query`.  As a result, if
a user was logged in and viewing the member directory, this added twenty
additional DB queries to the page.

This commit:
* Adds an additional property - `friendship_status` - to `bp_friends_filter_user_query_populate_extras()`. This property references the various friendship statuses from `BP_Friends_Friendship::check_is_friend()`
* Checks this new property in `friends_check_friendship_status()` before querying the DB
* Adds unit tests

Props r-a-y, boonebgorges.

Fixes #5703.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8514 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Only disable WP_DEBUG on PHP 5.5 Travis CI tests when running WP 3.7

This disabling is meant to allow builds to pass even in the presence of mysqli-
related debug notices. But later versions of WP either suppress the notice, or
support mysqli natively.

See #5708

Props netweb

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8515 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
In Travis CI config, move environment setup to before_install, so as not to trigger failed builds

Environment setup on Travis CI can fail in a number of ways - failed git
checkouts, database connection problems, etc - that have nothing specifically
to do with BuddyPress's test configuration. This changeset moves those steps
into the before_install section, with the result that a failed setup routine
will result in an 'errored' rather than 'failed' build. Grunt setup and the
phpunit tests themselves will continue to generate failure messages when
something goes wrong.

See #5708

Props netweb

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8516 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't use extract() in bp_activity_get()

See #5698

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8517 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add 'option' to the whitelist of xprofile field types

The 'option' field type is not full-fledged, in the sense that it has an
associated BP_XProfile_Field_Type class; it is used only to save the values
that are child options of type 'radio', 'select', 'multiselect' and other
option-supporting field types. It is important that 'option' thus be added
manually to the field type whitelist, so that option fields can be created
programatically.

Fixes #5472

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8518 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't use extract() in bp_activity_get_specific()

See #5698

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8519 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't use extract() in bp_activity_add()

See #5698

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8520 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Unit tests for bp_activity_post_update()

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8521 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't use extract() in bp_activity_post_update()

See #5698

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8522 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use dirname( __FILE__ ) instead of __DIR__ in trunk loader file

As WordPress minimum PHP required version is 5.2.4 and __DIR__ was introduced in 5.3, we need to use dirname( __FILE__ ) so that people can use the trunk version of BuddyPress if their PHP version is lower than 5.3.

props hnla, boonebgorges

Fixes #5702

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8523 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Improve the format of the "dummy" cached item in BP_XProfile_XProfileData::get_data_for_user()

When a value is not found for a given field/user pair, an empty piece of data
is stored in the cache to avoid an unnecessary requery. However, the value was
not being stored with the proper format, resulting in PHP notices in certain
cases (such as when fields were preloaded into the cache for 'select'/'option'
parent/child relationships)

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8524 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't use extract() in bp_activity_new_comment()

See #5698

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8525 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add unit test for bp_activity_get_activity_id()

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8526 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't use extract() in bp_activity_get_activity_id(). See #5698

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8527 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add unit test for bp_activity_delete_by_item_id()

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8528 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't use extract() in bp_activity_delete_by_item_id().

See #5698

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