From 8c74a6057ee82026b972273261f84206cca67d02 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 18 May 2010 01:34:01 +0000 Subject: [PATCH] die in non-async upload in [14716], see #12853 git-svn-id: https://develop.svn.wordpress.org/trunk@14717 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 f5c2e62a0b..b140313078 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' && isset($_POST['html-upload']) ) + if ( $file['error'] != '0' && !isset($_POST['html-upload']) ) wp_die( $file['error'] . ' ' . __( 'Back' ) . '' ); return $file;