Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2019 07:49:19 PM (4 years ago)
Author:
imath
Message:

Revert [12483]

For further details see this discussion on slack

Props espellcaste, johnjamesjacoby

See #8151 (Branch 5.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/bp-groups/classes/class-bp-groups-component.php

    r12483 r12484  
    933933     */
    934934    public function rest_api_init( $controllers = array() ) {
    935         $controllers = array(
     935        parent::rest_api_init( array(
    936936            'BP_REST_Groups_Endpoint',
    937937            'BP_REST_Group_Membership_Endpoint',
    938938            'BP_REST_Group_Invites_Endpoint',
    939939            'BP_REST_Group_Membership_Request_Endpoint',
    940         );
    941 
    942         // Only Load the Group's Avatar controller if Group Avatar uploads are allowed.
    943         if ( ! bp_disable_group_avatar_uploads() ) {
    944             $controllers[] = 'BP_REST_Attachments_Group_Avatar_Endpoint';
    945         }
    946 
    947         parent::rest_api_init( $controllers );
     940            'BP_REST_Attachments_Group_Avatar_Endpoint',
     941        ) );
    948942    }
    949943}
Note: See TracChangeset for help on using the changeset viewer.