Skip to:
Content

BuddyPress.org

Changeset 12489


Ignore:
Timestamp:
11/01/2019 03:28:04 AM (5 years ago)
Author:
imath
Message:

Load the Member Avatar REST Controller from xProfile's component class

The Member Avatar feature needs the xProfile component to be active to be able to upload and delete local avatars. The developer documentation has been updated to inform about this requirement.

props espellcaste

Fixes #8151 (Branch 5.0)

Location:
branches/5.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/bp-members/classes/class-bp-members-component.php

    r12484 r12489  
    474474            'BP_REST_Components_Endpoint',
    475475            'BP_REST_Members_Endpoint',
    476             'BP_REST_Attachments_Member_Avatar_Endpoint',
    477476        ) );
    478477    }
  • branches/5.0/src/bp-xprofile/classes/class-bp-xprofile-component.php

    r12484 r12489  
    504504            'BP_REST_XProfile_Field_Groups_Endpoint',
    505505            'BP_REST_XProfile_Data_Endpoint',
     506            'BP_REST_Attachments_Member_Avatar_Endpoint',
    506507        ) );
    507508    }
  • branches/5.0/tests/phpunit/testcases/core/class-bp-component.php

    r12484 r12489  
    3333            'BP_REST_Components_Endpoint',
    3434            'BP_REST_Members_Endpoint',
    35             'BP_REST_Attachments_Member_Avatar_Endpoint',
    3635        ) );
    3736    }
     
    4948        $this->assertSame( $bp->unit_test_rest->controllers, array(
    5049            'BP_REST_Components_Endpoint',
    51             'BP_REST_Attachments_Member_Avatar_Endpoint',
    5250        ) );
    5351    }
     
    6664            'BP_REST_Components_Endpoint',
    6765            'BP_REST_Members_Endpoint',
    68             'BP_REST_Attachments_Member_Avatar_Endpoint',
    6966        ) );
    7067    }
Note: See TracChangeset for help on using the changeset viewer.