- Timestamp:
- 10/28/2019 07:49:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/bp-groups/classes/class-bp-groups-component.php
r12483 r12484 933 933 */ 934 934 public function rest_api_init( $controllers = array() ) { 935 $controllers =array(935 parent::rest_api_init( array( 936 936 'BP_REST_Groups_Endpoint', 937 937 'BP_REST_Group_Membership_Endpoint', 938 938 'BP_REST_Group_Invites_Endpoint', 939 939 '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 ) ); 948 942 } 949 943 }
Note: See TracChangeset
for help on using the changeset viewer.