wpseek.com
A WordPress-centric search engine for devs and theme authors



fix_import_form_size › WordPress Function

Since
Deprecatedn/a
fix_import_form_size ( $size )
Parameters:
  • (int) $size Current max size in bytes.
    Required: Yes
Returns:
  • (int) Max size in bytes.
Defined at:
Codex:
Change Log:
  • MU

Gets the remaining upload space for this site.



Source

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