observe fileupload_maxk in media uploader, see #12853

git-svn-id: http://svn.automattic.com/wordpress/trunk@14694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-05-16 20:09:56 +00:00
parent 80a8899c0b
commit 3d44d70aab
1 changed files with 4 additions and 1 deletions

View File

@ -408,9 +408,12 @@ function is_upload_space_available() {
/*
* @since 3.0.0
*
* @return int of upload size limit in bytes
*/
function upload_size_limit_filter( $size ) {
return min( $size, get_upload_space_available() );
$fileupload_maxk = 1024 * get_site_option( 'fileupload_maxk', 1500 );
return min( $size, $fileupload_maxk, get_upload_space_available() );
}
/**
* Determines if there is any upload space left in the current blog's quota.