Make WordPress Core


Ignore:
Timestamp:
06/13/2024 09:58:11 AM (3 months ago)
Author:
adamsilverstein
Message:

Networks and sites: use get_allowed_mime_types to populate multisite’s upload_filetypes.

Ensure new multisite installs are up to date with the current mime types supported in core.

Note that this will only affect newly created networks, since this is only used to populate the schema for new networks, not change the allowed mime types for existing networks

Props spacedmonkey, costdev, pavanpatil1, joemcgill, rajinsharwar, tb1909.
Fixes #53167.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php

    r58326 r58400  
    240240            'image',
    241241            'audio',
    242         );
    243         if ( ! is_multisite() ) {
    244             $media_types[] = 'text';
    245         }
     242            'text',
     243        );
    246244        $this->assertSameSets( $media_types, $data['endpoints'][0]['args']['media_type']['enum'] );
    247245    }
Note: See TracChangeset for help on using the changeset viewer.