die in non-async upload in [14716], see #12853

git-svn-id: http://svn.automattic.com/wordpress/trunk@14717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-05-18 01:34:01 +00:00
parent c5aab621a9
commit a4ff4953aa
1 changed files with 1 additions and 1 deletions

View File

@ -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'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' );
return $file;