- Timestamp:
- 10/28/2019 07:49:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/bp-xprofile/classes/class-bp-xprofile-component.php
r12483 r12484 500 500 */ 501 501 public function rest_api_init( $controllers = array() ) { 502 $controllers =array(502 parent::rest_api_init( array( 503 503 'BP_REST_XProfile_Fields_Endpoint', 504 504 'BP_REST_XProfile_Field_Groups_Endpoint', 505 505 'BP_REST_XProfile_Data_Endpoint', 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 ); 506 ) ); 514 507 } 515 508 }
Note: See TracChangeset
for help on using the changeset viewer.