[buddypress-trac] [BuddyPress Trac] #8151: Avatar endpoints are loaded even they have been disabled from the WP Admin options screen

buddypress-trac noreply at wordpress.org
Sun Oct 27 04:53:19 UTC 2019


#8151: Avatar endpoints are loaded even they have been disabled from the WP Admin
options screen
--------------------------+---------------------
 Reporter:  imath         |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.1.0
Component:  REST API      |     Version:  5.0.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12483" 12483]:
 {{{
 #!CommitTicketReference repository="" revision="12483"
 Only load BP REST API Avatar Controllers when avatar uploads are on

 - Move the loading of the `BP_REST_Attachments_Member_Avatar_Endpoint`
 controller into the xProfile component's class. User Avatar is an xProfile
 feature.
 - Make sure to check the community administrator allowed member avatar
 uploads before loading this controller.
 - Make sure to check the community administrator allowed group avatar
 uploads before loading `BP_REST_Attachments_Group_Avatar_Endpoint`.

 Fixes #8151 (Branch 5.0)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8151#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list