Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2019 07:49:19 PM (5 years ago)
Author:
imath
Message:

Revert [12483]

For further details see this discussion on slack

Props espellcaste, johnjamesjacoby

See #8151 (Branch 5.0)

File:
1 edited

Legend:

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

    r12483 r12484  
    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.