@since for some new ms functions re: upload file size limits. see #12853.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-04 08:41:46 +00:00
parent ac7687ee8d
commit b5c233a1b5
1 changed files with 4 additions and 0 deletions

View File

@ -393,6 +393,7 @@ function get_site_allowed_themes() {
/**
* Determines if there is any upload space left in the current blog's quota.
*
* @since 3.0.0
* @return bool True if space is available, false otherwise.
*/
function is_upload_space_available() {
@ -405,6 +406,9 @@ function is_upload_space_available() {
return true;
}
/*
* @since 3.0.0
*/
function upload_size_limit_filter( $size ) {
return min( $size, get_upload_space_available() );
}