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:
rob1n 2007-05-23 15:45:28 +00:00
parent 4d9a6e1a98
commit 040263799f
1 changed files with 1 additions and 0 deletions

View File

@ -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>