[buddypress-trac] [BuddyPress Trac] #5766: groups_get_groups does not populate_extras

buddypress-trac noreply at wordpress.org
Wed Jul 23 14:29:21 UTC 2014


#5766: groups_get_groups does not populate_extras
-------------------------+-----------------------------
 Reporter:  shanebp      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Core         |     Version:  2.0
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------
Changes (by boonebgorges):

 * keywords:   => needs-patch
 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => Future Release


Comment:

 'populate_extras' is working as intended. It's just that it means
 something different in the case of `BP_Groups_Group::get()` from what it
 means in the case of `BP_Groups_Group::__construct()`. For `get()`, it
 calls `get_group_extras()`, which does *not* fetch `admins` or `mods`
 info. For `BP_Groups_Group`, it calls `populate()`, which *does*.

 In the future, it would be nice to make these two act in an identical way
 (ideally by using the same underlying `'populate_extras'` method). But
 since this is not a regression, and since comprehensive unit tests will be
 required first, I'm going to put this in Future Release pending a patch.

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


More information about the buddypress-trac mailing list