Filter max upload file size for import form. Props Donncha. fixes #4320

git-svn-id: https://develop.svn.wordpress.org/trunk@5527 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-05-23 15:45:28 +00:00
parent 7a394a909e
commit bf709d5234
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>