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

buddypress-trac noreply at wordpress.org
Tue Mar 15 23:21:33 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  |

Comment (by imath):

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

 See #8646 (trunk)

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

More information about the buddypress-trac mailing list