[buddypress-trac] [BuddyPress Trac] #8595: Improve `bp_attachments_get_allowed_types()`
buddypress-trac
noreply at wordpress.org
Sat Oct 30 17:27:37 UTC 2021
#8595: Improve `bp_attachments_get_allowed_types()`
--------------------------+---------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 10.0.0
Component: Core | Version: 2.4.0
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Comment (by imath):
In [changeset:"13134" 13134]:
{{{
#!CommitTicketReference repository="" revision="13134"
Improve 2 Core Attachments functions
- stop using a `switch()` statement in favor of some `if/else` ones to
avoid a possible notice error when getting all allowed BP Attachements.
- stop using `wp_match_mime_types()` inside the
`bp_attachments_get_allowed_mimes()` function. Using
`wp_match_mime_types()` was generating unconsistent results when trying to
get all BP Attachments allowed mime types.
Fixes #8595 (really)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8595#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list