Changeset 8056
- Timestamp:
- 03/06/2014 01:40:03 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r8044 r8056 162 162 public function __construct( $id = null, $args = array() ) { 163 163 $this->args = wp_parse_args( $args, array( 164 'populate_extras' => true,164 'populate_extras' => false, 165 165 ) ); 166 166 -
trunk/bp-groups/bp-groups-functions.php
r7956 r8056 44 44 'group_id' => false, 45 45 'load_users' => false, 46 'populate_extras' => true,46 'populate_extras' => false, 47 47 ) ); 48 48 -
trunk/bp-groups/bp-groups-loader.php
r7966 r8056 163 163 $bp->is_single_item = true; 164 164 $current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' ); 165 $this->current_group = apply_filters( 'bp_groups_current_group_object', new $current_group_class( $group_id ) ); 165 166 if ( $current_group_class == 'BP_Groups_Group' ) { 167 $this->current_group = groups_get_group( array( 168 'group_id' => $group_id, 169 'populate_extras' => true, 170 ) ); 171 172 } else { 173 $this->current_group = apply_filters( 'bp_groups_current_group_object', new $current_group_class( $group_id ) ); 174 } 166 175 167 176 // When in a single group, the first action is bumped down one because of the -
trunk/tests/testcases/groups/functions.php
r7956 r8056 563 563 $this->set_current_user( $u1 ); 564 564 565 $group1 = groups_get_group( array( 'group_id' => $g, ) );565 $group1 = groups_get_group( array( 'group_id' => $g, 'populate_extras' => true ) ); 566 566 567 567 $this->set_current_user( $u2 ); 568 568 569 $group2 = groups_get_group( array( 'group_id' => $g, ) );569 $group2 = groups_get_group( array( 'group_id' => $g, 'populate_extras' => true ) ); 570 570 571 571 $this->assertNotEquals( $group1, $group2 );
Note: See TracChangeset
for help on using the changeset viewer.