Reconfigures canonical redirection so that URIs canonicalize up (less specific) rather than down (more specific). Fixes #1741

git-svn-id: http://svn.buddypress.org/trunk@5895 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r5895

git-svn-id: http://svn.buddypress.org/trunk@5896 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
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

git-svn-id: http://svn.buddypress.org/trunk@5897 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
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

git-svn-id: http://svn.buddypress.org/trunk@5899 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r5899

git-svn-id: http://svn.buddypress.org/trunk@5900 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
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

git-svn-id: http://svn.buddypress.org/trunk@5901 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r5901

git-svn-id: http://svn.buddypress.org/trunk@5902 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
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

git-svn-id: http://svn.buddypress.org/trunk@5903 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use current_user->ID instead of deprecated current_user->id in bp_blogs_validate_blog_signup(), to avoid PHP notices.
Fixes #4070. Props needle

git-svn-id: http://svn.buddypress.org/trunk@5904 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
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

git-svn-id: http://svn.buddypress.org/trunk@5906 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r5906

git-svn-id: http://svn.buddypress.org/trunk@5907 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Bail early in bp-default ajax functions if not a POST request.

git-svn-id: http://svn.buddypress.org/trunk@5908 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
POT, generated from r5908

git-svn-id: http://svn.buddypress.org/trunk@5909 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Map $exclude to absint in BP_Activity_Activity::get()

git-svn-id: http://svn.buddypress.org/trunk@5910 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Ren $page and $per_page through absint in BP_Activity_Activity::get()

git-svn-id: http://svn.buddypress.org/trunk@5911 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use wp_parse_id_list() in BP_Activity_Activity::get(). Props paulgibbs. (branches/1.5)

git-svn-id: http://svn.buddypress.org/trunk@5916 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fixes incorrect variable assignment in bp_forums_get_post_extras().
Fixes #4083. Props wpdennis

git-svn-id: http://svn.buddypress.org/trunk@5918 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Implode results of wp_parse_id_list() in BP_Activity_Activity::get(); (trunk)

git-svn-id: http://svn.buddypress.org/trunk@5920 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
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

git-svn-id: http://svn.buddypress.org/trunk@5922 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Prevent debug notice in bp_core_sort_nav_items() from $temp array not existing at first pass.

git-svn-id: http://svn.buddypress.org/trunk@5923 cdf35c40-ae34-48e0-9cc9-0c9da1808c22