Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2019 07:53:27 PM (4 years ago)
Author:
imath
Message:

Revert [12482]

For further details see this discussion on slack

Props espellcaste, johnjamesjacoby

Fixes #8151 (Trunk)

File:
1 edited

Legend:

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

    r12482 r12485  
    500500     */
    501501    public function rest_api_init( $controllers = array() ) {
    502         $controllers = array(
     502        parent::rest_api_init( array(
    503503            'BP_REST_XProfile_Fields_Endpoint',
    504504            'BP_REST_XProfile_Field_Groups_Endpoint',
    505505            '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        ) );
    514507    }
    515508}
Note: See TracChangeset for help on using the changeset viewer.