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/classes/class-bp-group-extension.php

    r10905 r11091  
    584584                $this->params['access'] = 'noone';
    585585            } else {
    586                 $group = groups_get_group( array(
    587                     'group_id' => $this->group_id,
    588                 ) );
     586                $group = groups_get_group( $this->group_id );
    589587
    590588                if ( ! empty( $group->status ) && 'public' === $group->status ) {
     
    669667     */
    670668    protected function user_meets_access_condition( $access_condition ) {
    671         $group = groups_get_group( array(
    672             'group_id' => $this->group_id,
    673         ) );
     669        $group = groups_get_group( $this->group_id );
    674670
    675671        switch ( $access_condition ) {
     
    851847
    852848        if ( ! $user_can_visit && is_user_logged_in() ) {
    853             $current_group = groups_get_group( array(
    854                 'group_id' => $this->group_id,
    855             ) );
     849            $current_group = groups_get_group( $this->group_id );
    856850
    857851            $no_access_args['message'] = __( 'You do not have access to this content.', 'buddypress' );
Note: See TracChangeset for help on using the changeset viewer.