- Timestamp:
- 03/31/2020 11:33:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-component.php
r12579 r12607 655 655 * 656 656 * @since 5.0.0 657 * @since 6.0.0 Adds the Member Cover and Signup REST endpoints. 657 658 * 658 659 * @param array $controllers Optional. See BP_Component::rest_api_init() for … … 660 661 */ 661 662 public function rest_api_init( $controllers = array() ) { 662 parent::rest_api_init(array(663 $controllers = array( 663 664 /** 664 665 * As the Members component is always loaded, … … 668 669 'BP_REST_Members_Endpoint', 669 670 'BP_REST_Attachments_Member_Avatar_Endpoint', 670 ) ); 671 ); 672 673 if ( bp_is_active( 'members', 'cover_image' ) ) { 674 $controllers[] = 'BP_REST_Attachments_Member_Cover_Endpoint'; 675 } 676 677 if ( bp_get_signup_allowed() ) { 678 $controllers[] = 'BP_REST_Signup_Endpoint'; 679 } 680 681 parent::rest_api_init( $controllers ); 671 682 } 672 683
Note: See TracChangeset
for help on using the changeset viewer.