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

git-svn-id: https://develop.svn.wordpress.org/trunk@14437 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-04 08:41:46 +00:00
parent 13e1cfef44
commit 6d40008887
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() );
}