[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:10:42 UTC 2019


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

Comment (by imath):

 In [changeset:"12482" 12482]:
 {{{
 #!CommitTicketReference repository="" revision="12482"
 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`.

 See #8151 (Trunk)
 }}}

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


More information about the buddypress-trac mailing list