Filter max upload file size for import form. Props Donncha. fixes #4320
git-svn-id: http://svn.automattic.com/wordpress/trunk@5527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4d9a6e1a98
commit
040263799f
|
@ -2007,6 +2007,7 @@ function wp_import_upload_form( $action ) {
|
|||
$bytes = $size * 1024 * 1024;
|
||||
if (strpos($size, 'g') !== false)
|
||||
$bytes = $size * 1024 * 1024 * 1024;
|
||||
$size = apply_filters( 'import_upload_size_limit', $size );
|
||||
?>
|
||||
<form enctype="multipart/form-data" id="import-upload-form" method="post" action="<?php echo attribute_escape($action) ?>">
|
||||
<p>
|
||||
|
|
Loading…
Reference in New Issue