Settings: rename the member/settings subnav tab name from "Profile" to "Profile Visibility".

The new name clarifies what the purpose of this subnav screen is; that is, to manage profile fields' visibility.

Fixes #5599, props tharsheblows

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9167 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core, Activity: change the Activity table's `primary_link` column from `varchar(255)` to `text`.

This change will avoid unintended truncation for long URLs. This can be a problem for links
built from slugs written in double-byte languages, or for letters that have been URL encoded.

We've tried previously to fix this, in r5966. Better luck this time. :)

Fixes #5890, props tharsheblows

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9168 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Ensure that 'count_total' is available throughout `bp_has_activities()` loop.

Props tharsheblows.
Fixes #5915.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9169 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Assemble group notification hooks dynamically.

This makes them easier to document using WP's filter documentation standards.

Props Mamaduka.
See #5970.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9170 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core: admin notice functions now support a "type".

The type parameter is used to set a CSS class when the notices are
rendered in wp-admin. It defaults to “updated”, which is the same as
the previous behaviour, which is visually styled as the box with the
green border.

Fixes #6041

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9171 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Core: render the permalink nag an error message

Previously, it’s been rendering with a green border which I think helps
make people blind to the fact that we’re asking for action to be taken
(based on real-life user testing).

See #6041

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9172 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Generate friend initiation hook dynamically.

This makes it easier to document per WP standards.

Props tw2113.
See #5942.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9173 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add hook documentation in bp-friends-functions.php.

Props tw2113.
See #5942.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9174 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add hook documentation in bp-friends-notifications.php.

Props tw2113.
See #5942.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9175 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add hook documentation in bp-friends-template.php.

Props tw2113.
See #5942.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9176 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Improve matching between active component status and directory page status.

* When a directory page is deleted, delete the corresponding entry from bp_pages. This ensures that the admin will see the admin_notice that a page mapping is missing.
* When pulling up page mappings with `bp_core_get_directory_page_ids()`, remove entries corresponding to deleted pages and deactivated components.

Props Mamaduka.
Fixes #5681.

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

Based on `WP_Meta_Query`, `BP_XProfile_Query` is a helper class for generating
queries against users' XProfile data. It allows developers to filter user
queries to those users who have profile data matching a wide range of
comparisons, from simple equality ("city=Chicago") to complex combinations of
various comparison operators.

An `'xprofile_query'` argument has been introduced to `BP_User_Query` to
support use of `BP_XProfile_Query` inside of `bp_has_members()` loops.

See #5839.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9178 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use `bp_esc_like()` in `BP_XProfile_Query`.

`$wpdb->esc_like` was introduced in WP 4.0.0, and our wrapper provides backward
compatibility for earlier versions of WordPress.

See #5839.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9179 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't remove Register and Activate pages from `bp_core_get_directory_page_ids()`.

These two pages do not correspond to components, so they should be excluded
from `bp_is_active()` checks.

Props imath.
Fixes #6043.

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