Don't check the upload space site option if the option is disabled. props greuben, fixes #13601.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e8468d167a
commit
e68063f9f3
|
@ -347,6 +347,9 @@ function is_upload_space_available() {
|
|||
*/
|
||||
function upload_size_limit_filter( $size ) {
|
||||
$fileupload_maxk = 1024 * get_site_option( 'fileupload_maxk', 1500 );
|
||||
if ( get_site_option( 'upload_space_check_disabled' ) )
|
||||
return min( $size, $fileupload_maxk );
|
||||
|
||||
return min( $size, $fileupload_maxk, get_upload_space_available() );
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue