Skip to:
Content

BuddyPress.org

Changeset 12488


Ignore:
Timestamp:
11/01/2019 03:24:50 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

See #8151 (Trunk)

Location:
trunk
Files:
3 edited

Legend:

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

    r12485 r12488  
    474474            'BP_REST_Components_Endpoint',
    475475            'BP_REST_Members_Endpoint',
    476             'BP_REST_Attachments_Member_Avatar_Endpoint',
    477476        ) );
    478477    }
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-component.php

    r12485 r12488  
    504504            'BP_REST_XProfile_Field_Groups_Endpoint',
    505505            'BP_REST_XProfile_Data_Endpoint',
     506            'BP_REST_Attachments_Member_Avatar_Endpoint',
    506507        ) );
    507508    }
  • trunk/tests/phpunit/testcases/core/class-bp-component.php

    r12485 r12488  
    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.