- Timestamp:
- 10/27/2019 04:53:16 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/bp-xprofile/classes/class-bp-xprofile-component.php
r12463 r12483 500 500 */ 501 501 public function rest_api_init( $controllers = array() ) { 502 parent::rest_api_init(array(502 $controllers = array( 503 503 'BP_REST_XProfile_Fields_Endpoint', 504 504 'BP_REST_XProfile_Field_Groups_Endpoint', 505 505 'BP_REST_XProfile_Data_Endpoint', 506 ) ); 506 ); 507 508 // Only Load the Member's Avatar controller if Avatar uploads are allowed. 509 if ( ! bp_disable_avatar_uploads() ) { 510 $controllers[] = 'BP_REST_Attachments_Member_Avatar_Endpoint'; 511 } 512 513 parent::rest_api_init( $controllers ); 507 514 } 508 515 }
Note: See TracChangeset
for help on using the changeset viewer.