fix_import_form_size() - WordPress 函数参考中文文档

返回介绍

fix_import_form_size()

发布于 2017-09-10 字数1144 浏览 844 评论 0

fix_import_form_size( int $size )

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 描述
MU Introduced.

相关函数

Uses

  • wp-admin/includes/ms.php:
    upload_is_user_over_quota()
  • wp-includes/ms-functions.php:
    get_upload_space_available()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!