Make it possible to prevent deprecated functions from loading

Until version 1.1, BP had a constant BP_IGNORE_DEPRECATED that kept BP from
loading the files that contain deprecated functions. This was mysteriously
removed for 1.2. Meanwhile, it was impossible to prevent deprecated functions
from being loaded.

This changeset reintroduces BP_IGNORE_DEPRECATED and uses it to decide whether
deprecated functions should be loaded. There is also a new filter
'bp_ignore_deprecated' that serves a similar purpose, but in filter form.

Fixes #5361

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7768 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Improve default avatar handling in bp_core_fetch_avatar()

Changes to Gravatar over the last few years have placed restrictions on the way
that a default gravatar (to be used as a fallback for when no actual Gravatar
is found) can be served to gravatar.com. In particular, Gravatar cannot cache
and serve default images that are not publicly available (as in dev
environments) or are only available over SSL.

Because BuddyPress's default behavior was to provide a local copy of the
mystery-man avatar, switching to Gravatar's hosted mystery-man solves these
problems for sites that are using the default mystery-man as a fallback image.

This changeset also reconfigures the way that the `BP_AVATAR_DEFAULT` constant
is respected, to ensure that it's possible to override the avatar fallback when
no_grav is set to true.

Fixes #4571

Props r-a-y

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7770 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use persistent cache for individual activity items

Fixes #5350

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7772 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix persistent caching for BP_Activity_Activity::get_activity_comments()

- Use the 'bp' cache group consistently
- When a query shows that an activity item has no comments, do not cache the
  boolean value false. This will cause a cache miss the next time around.
  Instead, store the string 'none', and then convert it to false when
  requerying.

Fixes #5369

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7773 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Introduce unit test for BP_Activity_Activity::get_activity_comments()

The main purpose of this test is to check the item formatting, to be used
during some upcoming refactoring of the method.

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

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

Previously, the appending of xprofile fullnames was done inline in the get()
method. This changeset breaks it into a standalone method, so it can be used
elsewhere in the class.

See #5371

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7776 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Split activity comments query into searate ID query

This eliminates joins against the global user table, and also centralizes
caching for individual activity items.

Fixes #5371

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7777 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Static method should be marked static

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7779 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Split xprofile group query, and add caching support for individual xprofile groups.

See #1332

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7780 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add caching support for default xprofile field visibility settings

These settings rarely change, and so are good candidates for persistent caching

See #1332

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7781 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Ack, typo. Fatal props boonebgorges

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7783 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Makes sure the /wp-admin BuddyPress profile stays in the "edit other users" context.

The patch also checks the /wp-admin BuddyPress profile screen is requested before loading the needed javascript.

Fixes #5365

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7785 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add persistent caching support for xprofile field data

See #1332

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