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:
parent
f02fddce86
commit
c5aab621a9
|
@ -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