函数原型
fix_import_form_size( int $size ): int
函数描述
Get the remaining upload space for this site.
是否弃用
未弃用
函数参数
-
$size
int
Required - Current max size in bytes
函数返回值
int Max size in bytes
函数位置
File: wp-admin/includes/ms.php.
函数源码
function fix_import_form_size( $size ) {
if ( upload_is_user_over_quota( false ) ) {
return 0;
}
$available = get_upload_space_available();
return min( $size, $available );
}
源码链接
变更日志
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |

