[buddypress-trac] [BuddyPress Trac] #8595: Improve `bp_attachments_get_allowed_types()`

buddypress-trac noreply at wordpress.org
Sat Oct 30 11:59:24 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     |
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


 In [changeset:"13132" 13132]:
 #!CommitTicketReference repository="" revision="13132"
 Improve the `bp_attachments_get_allowed_types()` function

 - Make sure requesting for the 'audio' type returns a list of audio file
 - Use the `wp_get_ext_types()` function so that passing the `'image'`,
 `'document'`, `'spreadsheet'`, `'interactive'`, `'text'`, `'archive'`,
 `'code'` types to the function will return the requested type extensions.

 Fixes #8595

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

More information about the buddypress-trac mailing list