only die on async upload error, see #12853

git-svn-id: https://develop.svn.wordpress.org/trunk@14716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-05-18 01:25:13 +00:00
parent 560acd7b63
commit 38036c72b9
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;