From 040263799f95685e83fbc624541b4b047b24b64f Mon Sep 17 00:00:00 2001 From: rob1n Date: Wed, 23 May 2007 15:45:28 +0000 Subject: [PATCH] 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 --- wp-admin/admin-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index cc393c9c27..ac57888988 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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 ); ?>