fix_import_form_size() – Get the remaining upload space for this site.

You appear to be a bot. Output may be restricted

Description

Get the remaining upload space for this site.

Usage

$int = fix_import_form_size( $size );

Parameters

$size
( int ) required – Current max size in bytes

Returns

int Max size in bytes

Source

File name: wordpress/wp-admin/includes/ms.php
Lines:

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

 View on GitHub View on Trac