diff --git src/wp-admin/includes/ms.php src/wp-admin/includes/ms.php
index e46247e..0766e03 100644
|
|
function check_upload_size( $file ) { |
35 | 35 | if ( upload_is_user_over_quota( false ) ) { |
36 | 36 | $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' ); |
37 | 37 | } |
38 | | if ( $file['error'] != '0' && !isset($_POST['html-upload']) ) |
| 38 | if ( $file['error'] != '0' && ! isset( $_POST['html-upload'] ) && ( ! defined( 'DOING_AJAX' ) || DOING_AJAX != true ) ) { |
39 | 39 | wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' ); |
| 40 | } |
40 | 41 | |
41 | 42 | return $file; |
42 | 43 | } |