Make WordPress Core


Ignore:
Timestamp:
11/01/2014 08:24:13 PM (10 years ago)
Author:
wonderboymusic
Message:

Display error message when Media Library upload fails.

Props gcorne.
Fixes #29891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r30105 r30156  
    3636        $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' );
    3737    }
    38     if ( $file['error'] != '0' && !isset($_POST['html-upload']) )
     38    if ( $file['error'] != '0' && ! isset( $_POST['html-upload'] ) && ( ! defined( 'DOING_AJAX' ) || DOING_AJAX != true ) ) {
    3939        wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' );
     40    }
    4041
    4142    return $file;
Note: See TracChangeset for help on using the changeset viewer.