WordPress.org

Make WordPress Core

Changeset 17085


Ignore:
Timestamp:
12/20/10 16:44:33 (3 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.