[buddypress-trac] [BuddyPress] #4134: bug in activity filtering for join group

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue May 8 13:28:24 UTC 2012


#4134: bug in activity filtering for join group
--------------------------+--------------------
 Reporter:  gwu123        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  1.6
Component:  Activity      |     Version:  1.5.5
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------

Comment (by boonebgorges):

 +1 to what DJPaul said.

 - Before querying for the group object, check to see whether `$item_id ==
 bp_get_current_group_id()`, and if so, then use
 `groups_get_current_group()` to populate the `$group` object.
 - Don't instantiate `BP_Groups_Group` directly. Use `groups_get_group(
 array( 'group_id' => $group_id ) )` instead. (This is a new change to BP
 1.6, to allow for better caching.)

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4134#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list