Make WordPress Core


Ignore:
Timestamp:
12/20/2010 04:44:33 PM (13 years ago)
Author:
nacin
Message:

Don't check the upload space site option if the option is disabled. props greuben, fixes #13601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r17084 r17085  
    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}
Note: See TracChangeset for help on using the changeset viewer.