WordPress at a glance
function is not described

fix_import_form_size() WP 3.0.0

Get the remaining upload space for this site.

No Hooks.


Int. Max size in bytes


fix_import_form_size( $size );
$size(int) (required)
Current max size in bytes

Code of fix import form size: wp-admin/includes/ms.php WP 5.2.1

function fix_import_form_size( $size ) {
	if ( upload_is_user_over_quota( false ) ) {
		return 0;
	$available = get_upload_space_available();
	return min( $size, $available );