Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2016 05:35:55 AM (3 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-groups/bp-groups-activity.php

    r10858 r11091  
    9999    $user_link = bp_core_get_userlink( $activity->user_id );
    100100
    101     $group = groups_get_group( array(
    102         'group_id'        => $activity->item_id,
    103         'populate_extras' => false,
    104     ) );
     101    $group      = groups_get_group( $activity->item_id );
    105102    $group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group->name ) . '</a>';
    106103
     
    130127    $user_link = bp_core_get_userlink( $activity->user_id );
    131128
    132     $group = groups_get_group( array(
    133         'group_id'        => $activity->item_id,
    134         'populate_extras' => false,
    135     ) );
     129    $group      = groups_get_group( $activity->item_id );
    136130    $group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group->name ) . '</a>';
    137131
     
    172166    $user_link = bp_core_get_userlink( $activity->user_id );
    173167
    174     $group = groups_get_group( array(
    175         'group_id'        => $activity->item_id,
    176         'populate_extras' => false,
    177     ) );
     168    $group      = groups_get_group( $activity->item_id );
    178169    $group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group->name ) . '</a>';
    179170
     
    361352            $group = groups_get_current_group();
    362353        } else {
    363             $group = groups_get_group( array( 'group_id' => $args['item_id'] ) );
     354            $group = groups_get_group( $args['item_id'] );
    364355        }
    365356
     
    431422
    432423    // Get the group so we can get it's name.
    433     $group = groups_get_group( array( 'group_id' => $group_id ) );
     424    $group = groups_get_group( $group_id );
    434425
    435426    /**
Note: See TracChangeset for help on using the changeset viewer.