[buddypress-trac] [BuddyPress Trac] #5411: Members nav of single group : total members seems not set

buddypress-trac noreply at wordpress.org
Fri Feb 28 23:33:37 UTC 2014


#5411: Members nav of single group : total members seems not set
--------------------------+---------------------------
 Reporter:  imath         |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  2.0
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------------
Changes (by r-a-y):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 r7934 defaults the 'populate_extras' parameter to true.

 However, there are very few instances where we need the extra group data.
 We only need it to be true when on a single group or in a group loop.

 This can save a lot of unnecessary queries since `groups_get_group()` or
 `new BP_Groups_Group` is called quite a bit.

 02.patch reverts r7934 and fixes a few places where we should be using the
 `current_group` object in `BP_Groups_Template`.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5411#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list