WordPress.org

Make WordPress Core

Ticket #13601: 13601.diff

File 13601.diff, 521 bytes (added by greuben, 4 years ago)
  • wp-admin/includes/ms.php

     
    347347 */ 
    348348function upload_size_limit_filter( $size ) { 
    349349        $fileupload_maxk = 1024 * get_site_option( 'fileupload_maxk', 1500 ); 
     350        if ( get_site_option( 'upload_space_check_disabled' ) ) 
     351                return min( $size, $fileupload_maxk ); 
     352                 
    350353        return min( $size, $fileupload_maxk, get_upload_space_available() ); 
    351354} 
    352355/**