Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2016 05:35:55 AM (8 years ago)
Author:
boonebgorges
Message:

Use new groups_get_group() syntax throughout BP.

See #5451.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-avatars.php

    r10899 r11091  
    314314
    315315            case 'group' :
    316                 $item_name = bp_get_group_name( groups_get_group( array( 'group_id' => $params['item_id'] ) ) );
     316                $item_name = bp_get_group_name( groups_get_group( $params['item_id'] ) );
    317317                break;
    318318
     
    10061006        if ( ! bp_get_current_group_id() && ! empty( $bp_params['item_id'] ) ) {
    10071007            $needs_reset = array( 'component' => 'groups', 'key' => 'current_group', 'value' => $bp->groups->current_group );
    1008             $bp->groups->current_group = groups_get_group( array(
    1009                 'group_id'        => $bp_params['item_id'],
    1010                 'populate_extras' => false,
    1011             ) );
     1008            $bp->groups->current_group = groups_get_group( $bp_params['item_id'] );
    10121009        }
    10131010    } else {
Note: See TracChangeset for help on using the changeset viewer.