- Timestamp:
- 10/27/2019 04:53:16 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/bp-groups/classes/class-bp-groups-component.php
r12463 r12483 933 933 */ 934 934 public function rest_api_init( $controllers = array() ) { 935 parent::rest_api_init(array(935 $controllers = 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 'BP_REST_Attachments_Group_Avatar_Endpoint', 941 ) ); 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 ); 942 948 } 943 949 }
Note: See TracChangeset
for help on using the changeset viewer.