[buddypress-trac] [BuddyPress Trac] #5420: unit tests failing because of using bp_group_has_members() outside group context

buddypress-trac noreply at wordpress.org
Tue Feb 25 00:10:57 UTC 2014


#5420: unit tests failing because of using bp_group_has_members() outside group
context
--------------------------+---------------------
 Reporter:  DJPaul        |       Owner:  djpaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.0
Component:  Unit Tests    |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  commit        |
--------------------------+---------------------
Changes (by djpaul):

 * owner:   => djpaul
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"7978"]:
 {{{
 #!CommitTicketReference repository="" revision="7978"
 Groups: When preparing the Group Members template loop, use the details of
 the group passed to the class rather than always using
 `$bp->groups->current_group`.

 The global property is usually set to the currently-displayed group
 according to BP's URI parsing, but if the Group Members template loop is
 used outside a typical Groups context (such as in 3rd party plugin, or a
 unit test), then this variable isn't set. At worse, it'd use the wrong
 group's details to build the template loop.

 Fixes #5420
 }}}

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


More information about the buddypress-trac mailing list