Introduce filter 'bp_xprofile_get_hidden_field_types_for_user'

This will make it easier for plugin authors to create custom visibility levels.

See #5317

Props megainfo

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7730 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Pass 'string' rather than 'simple' as default parameters in `bp_core_get_notifications_for_user()` and `bp_notifications_get_notifications_for_user()`. Fixes #BB2508. (trunk)

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7732 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Make sure the register item of a dynamic BuddyPress nav menu is displayed to a logged out user

In case the slug of the Register directory page has been changed, the register item was not displayed to logged out user.
Instead of the Register directory page slug, we need to use the string "register" in a similar approach to the login item.

Fixes #5322

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7734 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Theme compat: When resetting post, set 'is_page' to true.

Previously, when resetting the post, 'is_archive' was set to true.

As a consequence, certain themes with some form of conditional
template logic (like Atahualpa and Attitude) were loading their
archive template because of the 'is_archive' flag.  This caused
formatting display issues because the archive template historically
uses the_excerpt() causing all formatting to be stripped out.

This commit changes all reset post calls so the 'is_page' parameter is
set to true.  This should correctly use the regular page template for
theme compatibility for themes with conditional template logic.

See #5301.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7736 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Bump trunk version number to stop WP update nags

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7737 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Define $bp->signup in the members component loader

Setting up the dummy class here ensures that we don't get PHP notices
downstream.

Fixes #5305

Props reactuate for initial patch

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7739 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Messages: fix bulk delete javascript on the inbox/sentbox screens.

Fixes #5347, props glyndavidson

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7740 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Prevents Activate and Register pages from showing in the Pages meta box of the Menu Administration screen.

In the same way these pages are not displayed on the page listings, they will be hidden from the available items of the Pages meta box in the menus administration. This also avoids confusion with the register item of BuddyPress dynamic links.

Fixes #5323

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7742 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Makes group avatars not dependant of xprofile component settings

Avatar uploads setting is by default attached to xprofile settings. In case this component is disable and groups component is active, the avatar uploads setting will be attached to groups in order to keep on allowing avatar uploads for groups.

Fixes #5330

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7744 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
On single group screens, uses default avatar as a fallback in group navigation menu

In case the WordPress Discussion Avatar display setting is disabled, using bp_group_current_avatar() to set group navigation menu was outputing an unfound image making the group edit screens unavailable. This fix uses default avatar as a fallback if no group avatar has been found to build the group navigation menu. It also keeps  bp_group_current_avatar() function in case it is still used by a plugin or a theme, but this function now outputs the current avatar.

Fixes #5343

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7746 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Does not display change-avatar user nav and screens if WordPress Show avatars setting is disabled

If WordPress discussion Avatar display setting is not activated, then displaying change-avatar user nav and screens is not necessary and might confuse the user as his uploaded avatar will not display.

Fixes #5346

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7748 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Replace `$bp` global references in slug functions with `buddypress()` calls. See #5138. (trunk)

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7752 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Bump trunk version to 2.0 alpha.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7753 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove the old badge images from the about/credits pages, and use our dashicon instead.

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