In BP_Groups_Group_Members_Template::__construct(), don't attempt to divide by zero when tabulating pagination. Prevents PHP divide-by-zero notices when a null value is passed as the per_page parameter into the constructor.
Reconfigures canonical redirection so that URIs canonicalize up (less specific) rather than down (more specific). Fixes #1741
POT, generated from r5895
Switch to root blog to get avatar upload directory in bp_core_avatar_upload_path().
Fixes problem that prevented locally-uploaded avatars from appearing properly on non-root sites.
Fixes #2574
Rearranges logic in bp_blogs_record_comment() to avoid PHP notices when a post is left by a non-logged-in user. Fixes #4068. Props Mamaduka
POT, generated from r5899
Introduces bp_activity_latest_update_content filter, to allow the filtering of update content before it is saved to a user's latest_update usermeta.
Moves the hardcoded wp_filter_kses() filter on latest_update content to an unhookable add_filter() call.
Fixes #4058. Props wpdennis, Mamaduka
POT, generated from r5901
Improvements to link construction and filters in the Groups component:
- Fixes arguments being passed to bp_groups_get_total_groups_sql filter
- Passes additional arguments to various group link filters
- Sweeps through link concatenation in the groups component, to ensure that bp_get_group_permalink is used wherever possible (allowing for centralized filters in plugins)
- Corrects some inline documentation
- Fixes the permissions logic in bp_groups_adminbar_admin_menu(), so that super admins and group admins are able to see the group-specific dropdown when using the BuddyBar
- Fixes #4071. Props travel-junkie
Use current_user->ID instead of deprecated current_user->id in bp_blogs_validate_blog_signup(), to avoid PHP notices.
Fixes #4070. Props needle
Reworks some functions around the querying of friendship requests:
- Refactors bp_get_friendship_requests() so that it accepts a manual user_id parameter, and so that it falls back on the displayed_user rather than the loggedin_user (for future administrative tasks)
- Reconfigures the return value of bp_get_friendship_requests() so that a 0 is returned when there are no pending requests, to ensure that a non-false value is passed to bp_has_members() when viewing the Requests page of a user with no pending requests
- Removes the hardcoded 'return false' from bp_has_members() that would occur when an empty 'include' parameter was passed on the Requests page, so that sidebar widgets using bp_has_members() would work properly
- Reconfigures the 'include' logic in BP_Core_User::get_users() so that a value of 0 or '0' results in a false result, while continuing to respect legacy behavior of the default false value
- Fixes #4066
POT, generated from r5906
Bail early in bp-default ajax functions if not a POST request.
POT, generated from r5908
Map $exclude to absint in BP_Activity_Activity::get()
Ren $page and $per_page through absint in BP_Activity_Activity::get()
Use wp_parse_id_list() in BP_Activity_Activity::get(). Props paulgibbs. (branches/1.5)
Fixes incorrect variable assignment in bp_forums_get_post_extras().
Fixes #4083. Props wpdennis
Implode results of wp_parse_id_list() in BP_Activity_Activity::get(); (trunk)
More redundant URL tweaks

* Do not include sub_nav slug in $link if it's the default for its parent
* Add missing priorities to bp_screens actions to ensure adding/removing works correctly
* Avoid double-negative is_object() checks
* Add phpdoc header to bp-core-buddybar.php
* Various code clean-up
* Debug-notice dodging where missing
* See #1741