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

buddypress-trac noreply at wordpress.org
Tue Mar 15 23:30:11 UTC 2022


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

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


Comment:

 In [changeset:"13264" 13264]:
 {{{
 #!CommitTicketReference repository="" revision="13264"
 Attachments: introduce a new function to retrieve a media mime type

 `bp_attachements_get_mime_type()` returns a media mime type if it is
 supported by WordPress, `false` if not. This function was mainly
 introduced to replace the `mime_content_type()` PHP function which
 appeared to be problematic for some end users (Some hosts are disabling
 it, causing an error during the Avatar crop step).

 This commit also introduces `bp_attachments_get_file_object()`, a function
 to avoid code duplication about getting a BP Attachment object.

 Props Nihanthk, maleemuse

 Fixes #8646 (branch 10.0)
 }}}

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


More information about the buddypress-trac mailing list