[wp-trac] [WordPress Trac] #53167: upload_filetypes should map to get_allowed_mime_types

WordPress Trac noreply at wordpress.org
Fri May 31 20:54:30 UTC 2024


#53167: upload_filetypes should map to get_allowed_mime_types
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.6
Component:  Networks and Sites                   |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing-info has-    |     Focuses:  multisite,
  unit-tests                                     |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 Steps to replicate:

 Install patch / checkout PR
 Create a fresh install of WordPress.
 Convert site to multisite.
 Go Network > Settings

 In the `Upload file types` field it should look like this.

 {{{#!php
 jpg jpeg jpe gif png bmp tiff tif webp avif ico heic asf asx wmv wmx wm
 avi divx flv mov qt mpeg mpg mpe mp4 m4v ogv webm mkv 3gp 3gpp 3g2 3gp2
 txt asc c cc h srt csv tsv ics rtx css vtt dfxp mp3 m4a m4b aac ra ram wav
 ogg oga flac mid midi wma wax mka rtf pdf class tar zip gz gzip rar 7z psd
 xcf doc pot pps ppt wri xla xls xlt xlw mdb mpp docx docm dotx dotm xlsx
 xlsm xlsb xltx xltm xlam pptx pptm ppsx ppsm potx potm ppam sldx sldm
 onetoc onetoc2 onetmp onepkg oxps xps odt odp ods odg odc odb odf wp wpd
 key numbers pages
 }}}

 Which is different from the current list.

 {{{#!php
 $misc_exts        = array(
                 // Images.
                 'jpg',
                 'jpeg',
                 'png',
                 'gif',
                 'webp',
                 // Video.
                 'mov',
                 'avi',
                 'mpg',
                 '3gp',
                 '3g2',
                 // "audio".
                 'midi',
                 'mid',
                 // Miscellaneous.
                 'pdf',
                 'doc',
                 'ppt',
                 'odt',
                 'pptx',
                 'docx',
                 'pps',
                 'ppsx',
                 'xls',
                 'xlsx',
                 'key',
         );

 }}}

 CC @joemcgill @pbearne @mukesh27

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53167#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list