fix_import_form_size( int $size )

Get the remaining upload space for this site.


Description Description


Parameters Parameters

$size

(int) (Required) Current max size in bytes


Top ↑

Return Return

(int) Max size in bytes


Top ↑

Source Source

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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
MU (3.0.0) Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.