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:
parent
560acd7b63
commit
38036c72b9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue