In `bp_has_message_threads()` properly redirect to the displayed user domain (not the ID.)

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7923 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Clean up `bp_has_message_threads()`:

* Move default box ahead of argument parsing so it can be overridden VS being forced.
* Remove unused `$bp` global.
* Use `bp_parse_args()` so arguments can be filtered before they are queried.
* Pass `$r` into `bp_has_message_threads` filter.
* Add inline documentation and phpdoc block.

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7925 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Adds bp_is_{component}_directory new helper functions

To check if the current page is the activity, members, groups or blogs directory page, you can now use these new helper functions.

Props r-a-y, DJPaul

Fixes #5408

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7926 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Pass bp_has_members() params as an array in core widgets

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7927 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Pass 'per_page' argument to bp_has_members() in BP_Core_Members_Widget

This argument is needed for cases where 'max' is less than the 'per_page'
default value of 20.

Fixes #5410

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

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7929 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Refactor bp_group_has_members() stack to use array-style parameters

See #3797, #921

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7930 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Ensure that 'page' value passed to BP_Groups_Group_Members_Template is respected

Previously, it was being ignored - the only value considered was
$_GET['mlpage'], with a hardcoded fallback of 1.

See #921

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7931 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add support for 'search_terms' param in bp_group_has_members() stack

See #921

Props imath

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

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