Skip to:
Content

BuddyPress.org

Ticket #8151: 8151.3.patch

File 8151.3.patch, 2.0 KB (added by imath, 5 years ago)
  • src/bp-members/classes/class-bp-members-component.php

    diff --git src/bp-members/classes/class-bp-members-component.php src/bp-members/classes/class-bp-members-component.php
    index a83344feb..73b63348b 100644
    class BP_Members_Component extends BP_Component { 
    473473                         */
    474474                        'BP_REST_Components_Endpoint',
    475475                        'BP_REST_Members_Endpoint',
    476                         'BP_REST_Attachments_Member_Avatar_Endpoint',
    477476                ) );
    478477        }
    479478}
  • src/bp-xprofile/classes/class-bp-xprofile-component.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-component.php src/bp-xprofile/classes/class-bp-xprofile-component.php
    index b43879d34..49ae02dd5 100644
    class BP_XProfile_Component extends BP_Component { 
    503503                        'BP_REST_XProfile_Fields_Endpoint',
    504504                        'BP_REST_XProfile_Field_Groups_Endpoint',
    505505                        'BP_REST_XProfile_Data_Endpoint',
     506                        'BP_REST_Attachments_Member_Avatar_Endpoint',
    506507                ) );
    507508        }
    508509}
  • tests/phpunit/testcases/core/class-bp-component.php

    diff --git tests/phpunit/testcases/core/class-bp-component.php tests/phpunit/testcases/core/class-bp-component.php
    index bb8ad1b90..c5a5dd2b6 100644
    class BP_Tests_BP_Component_TestCases extends BP_UnitTestCase { 
    3232                $this->assertSame( $bp->unit_test_rest->controllers, array(
    3333                        'BP_REST_Components_Endpoint',
    3434                        'BP_REST_Members_Endpoint',
    35                         'BP_REST_Attachments_Member_Avatar_Endpoint',
    3635                ) );
    3736        }
    3837
    class BP_Tests_BP_Component_TestCases extends BP_UnitTestCase { 
    4847
    4948                $this->assertSame( $bp->unit_test_rest->controllers, array(
    5049                        'BP_REST_Components_Endpoint',
    51                         'BP_REST_Attachments_Member_Avatar_Endpoint',
    5250                ) );
    5351        }
    5452
    class BP_Tests_BP_Component_TestCases extends BP_UnitTestCase { 
    6563                $this->assertSame( $bp->unit_test_rest->controllers, array(
    6664                        'BP_REST_Components_Endpoint',
    6765                        'BP_REST_Members_Endpoint',
    68                         'BP_REST_Attachments_Member_Avatar_Endpoint',
    6966                ) );
    7067        }
    7168}