Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58513, comment 1


Ignore:
Timestamp:
06/12/2023 11:25:04 AM (22 months ago)
Author:
oliward@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58513, comment 1

    initial v1  
    33Worth noting this was initially discovered on a multisite installation, but also tested on a fresh WP setup, non-multisite, after allowing JSON file upload with:
    44
    5 
    6 ```
     5{{{#!php
    76add_filter('upload_mimes', function ($mimes) {
    87    $mimes['json'] = 'text/plain';
    98    return $mimes;
    109});
    11 ```
     10}}}
     11
    1212
    1313> When uploading a JSON file of exactly 1048577 bytes or less leads to: