@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:
parent
13e1cfef44
commit
6d40008887
@ -393,6 +393,7 @@ function get_site_allowed_themes() {
|
|||||||
/**
|
/**
|
||||||
* Determines if there is any upload space left in the current blog's quota.
|
* 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.
|
* @return bool True if space is available, false otherwise.
|
||||||
*/
|
*/
|
||||||
function is_upload_space_available() {
|
function is_upload_space_available() {
|
||||||
@ -405,6 +406,9 @@ function is_upload_space_available() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @since 3.0.0
|
||||||
|
*/
|
||||||
function upload_size_limit_filter( $size ) {
|
function upload_size_limit_filter( $size ) {
|
||||||
return min( $size, get_upload_space_available() );
|
return min( $size, get_upload_space_available() );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user