fix_import_form_size() WordPress Function
The fix_import_form_size() WordPress function is used to improve the usability of the WordPress import form by increasing the size of the form fields. This is especially useful for sites with large import files.
fix_import_form_size( int $size ) #
Get the remaining upload space for this site.
Parameters
- $size
(int)(Required)Current max size in bytes
Return
(int) Max size in bytes
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |