From c5aab621a9d58f48089a0b9ea471d5ac9d6409e9 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Tue, 18 May 2010 01:25:13 +0000 Subject: [PATCH] only die on async upload error, see #12853 git-svn-id: http://svn.automattic.com/wordpress/trunk@14716 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index f5f6e5a3d4..f5c2e62a0b 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -36,7 +36,7 @@ function check_upload_size( $file ) { if ( upload_is_user_over_quota( false ) ) { $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' ); } - if ( $file['error'] != '0' ) + if ( $file['error'] != '0' && isset($_POST['html-upload']) ) wp_die( $file['error'] . ' ' . __( 'Back' ) . '' ); return $file;