Making WordPress.org

Changeset 9885


Ignore:
Timestamp:
05/19/2020 03:47:31 PM (4 years ago)
Author:
Otto42
Message:

Plugins: Force upload size to max 10 while we work out why it's reporting 50 on translated sites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php

    r9592 r9885  
    258258    public static function get_max_allowed_file_size() {
    259259        $upload_size_unit = wp_max_upload_size();
     260
     261        // force max to 10M, since some sites seem to incorrectly report different values (temporary fix during investigation)
     262        if ( $upload_size_unit > 10485760 ) {
     263            $upload_size_unit = 10485760;
     264        }
     265           
    260266        $byte_sizes       = array( 'KB', 'MB', 'GB' );
    261267
Note: See TracChangeset for help on using the changeset viewer.