WordPress.org

Make WordPress Core

Ticket #42505: 42505-ms-functions.diff

File 42505-ms-functions.diff, 874 bytes (added by DrewAPicture, 3 years ago)

To be merged when Trunk reopens after 5.0

  • src/wp-includes/ms-functions.php

     
    18501850}
    18511851
    18521852/**
    1853  * Check an array of MIME types against a whitelist.
     1853 * Checks an array of MIME types against a whitelist for the current network.
    18541854 *
    1855  * WordPress ships with a set of allowed upload filetypes,
    1856  * which is defined in wp-includes/functions.php in
    1857  * get_allowed_mime_types(). This function is used to filter
    1858  * that list against the filetype whitelist provided by Multisite
    1859  * Super Admins at wp-admin/network/settings.php.
     1855 * Primarily used in conjunction with the {@see 'upload_mimes'} hook to ensure
     1856 * upload mime types match up with the whitelist provided by Multisite Super Admins.
    18601857 *
    18611858 * @since MU (3.0.0)
    18621859 *