[buddypress-trac] [BuddyPress Trac] #8646: cannot upload avatar - Crop Issues.

buddypress-trac noreply at wordpress.org
Thu Mar 10 09:03:13 UTC 2022


#8646: cannot upload avatar - Crop Issues.
-------------------------------------+-----------------------
 Reporter:  Nihanthk                 |       Owner:  (none)
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  10.2.0
Component:  Core                     |     Version:  10.0.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------
Changes (by imath):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 The above patch introduces the `bp_attachements_get_mime_type()` function
 which uses the `wp_get_mime_types()` one to find the file's mime type. I
 believe it's better to use this function as it also avoids listing files
 having a mime type not supported by WordPress.

 It seems to work nice, I'll run some complementary tests to be 💯 sure.

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


More information about the buddypress-trac mailing list