Make WordPress Core


Ignore:
Timestamp:
06/25/2014 05:59:54 PM (10 years ago)
Author:
wonderboymusic
Message:

Bring the list of upload_filetypes for multisite into modernity based on .com upgrades and supported extensions for audio and video.

Fixes #24434.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r28712 r28832  
    919919--The Team @ SITE_NAME' );
    920920
     921    $misc_exts = array(
     922        // images
     923        'jpg', 'jpeg', 'png', 'gif',
     924        // video
     925        'mov', 'avi', 'mpg', '3gp', '3g2',
     926        // "audio"
     927        'midi', 'mid',
     928        // misc
     929        'pdf', 'doc', 'ppt', 'odt', 'pptx', 'docx', 'pps', 'ppsx', 'xls', 'xlsx', 'key',
     930    );
     931    $audio_exts = wp_get_audio_extensions();
     932    $video_exts = wp_get_video_extensions();
     933    $upload_filetypes = array_unique( array_merge( $misc_exts, $audio_exts, $video_exts ) );
     934
    921935    $sitemeta = array(
    922936        'site_name' => $site_name,
     
    924938        'admin_user_id' => $site_user->ID,
    925939        'registration' => 'none',
    926         'upload_filetypes' => 'jpg jpeg png gif mp3 mov avi wmv midi mid pdf',
     940        'upload_filetypes' => implode( ' ', $upload_filetypes ),
    927941        'blog_upload_space' => 100,
    928942        'fileupload_maxk' => 1500,
Note: See TracChangeset for help on using the changeset viewer.