only die on async upload error, see #12853

git-svn-id: http://svn.automattic.com/wordpress/trunk@14716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-05-18 01:25:13 +00:00
parent f02fddce86
commit c5aab621a9
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 ) ) { if ( upload_is_user_over_quota( false ) ) {
$file['error'] = __( 'You have used your space quota. Please delete files before uploading.' ); $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'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' ); wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' );
return $file; return $file;