fix_import_form_size()
fix_import_form_size( int $size )
获取此网站的剩余上载空间。
Get the remaining upload space for this site.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$size | (int) | 必需 | 当前最大字节数 |
返回(Return)
(int)最大字节数
源码(Source)
/** * Get the remaining upload space for this blog. * * @since MU * * @param int $size Current max size in bytes * @return int Max size in bytes */ function fix_import_form_size( $size ) { if ( upload_is_user_over_quota( false ) ) { return 0; } $available = get_upload_space_available(); return min( $size, $available ); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
MU (3.0.0) | wp-admin/includes/ms.php:271 | 0 | 2 |
fix_import_form_size() 为WP2原创文章,链接:https://www.wp2.cn/functions/fix_import_form_size/