WordPress.org

Make WordPress Core

Ticket #12853: 12853.patch

File 12853.patch, 957 bytes (added by ocean90, 8 years ago)
  • wp-admin/async-upload.php

     
    77 */
    88
    99define('WP_ADMIN', true);
     10define( 'ASYNC_UPLOAD' , true);
    1011
    1112if ( defined('ABSPATH') )
    1213        require_once(ABSPATH . 'wp-load.php');
  • wp-admin/includes/ms.php

     
    3636        if ( upload_is_user_over_quota( false ) ) {
    3737                $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' );
    3838        }
    39         if ( $file['error'] != '0' )
     39        if ( $file['error'] != '0' && ( ! defined( 'ASYNC_UPLOAD' ) || ( defined( 'ASYNC_UPLOAD' ) && ! ASYNC_UPLOAD ) ) )
    4040                wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' );