mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 22:15:28 +00:00
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:
parent
80a8899c0b
commit
3d44d70aab
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user