Set default args for BP_Groups_Group::__construct()

Must ensure that the 'populate_extras' param defaults to true when the class
is instantiated directly.

Fixes member counts in navigation.

Fixes #5411

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7935 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix notification count when a user with 'bp_moderate' views a profile.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7936 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add missing textdomain in bp-members-admin.php

Fixes #5415

Props netweb

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7937 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add tests for BP_Groups_Group::get_group_extras()

See #5416

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7938 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't query for group extras if user is not logged in

Saves a couple needless database queries for unauthenticated users.

Fixes #5416

Props lenasterg for initial patch

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7940 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't shrink whats-new box if focusing away from window

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7941 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Introduce blog- and group-create button functions, and use to build directory headers in bp-legacy

The new functions bp_get_blog_create_button() and bp_get_group_create_button()
standardize the treatment of these buttons by using bp_get_button(). They also
make life easier for themers, who will not need to build the buttons from
scratch.

In this changeset we modify the way that bp-legacy loads these buttons into the
titles of the directory pages. Previously, it was done directly in BP's theme
compat layer, with the result that all template packs had to follow the
questionable practice of embedding a button inside of a header element. Now,
the directory title is a string, but is filtered; bp-legacy then chooses to
add a button by using the new create-button functions + the new filters.

Fixes #5144

Props hnla, r-a-y

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7942 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Sanity check before deleting old avatar files before cropping new ones

Previously, if a user uploaded a new avatar file that had a name format like
an existing BP avatar file, BP would accidentally wipe that file out before
cropping. This would result in a failed crop, because the just-uploaded image
would be gone. This changeset introduces a sanity check: only delete existing
avatar files if the filename for those files is not the same as the uploaded
file.

Fixes #5417

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7944 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Merge branch 'master' into xprofile-types