Make WordPress Core

Ticket #29891: 29891.2.diff

File 29891.2.diff, 713 bytes (added by TobiasBg, 10 years ago)
  • src/wp-admin/includes/ms.php

    diff --git src/wp-admin/includes/ms.php src/wp-admin/includes/ms.php
    index 66c9cb7..d2201d3 100644
    function check_upload_size( $file ) { 
    3535        if ( upload_is_user_over_quota( false ) ) {
    3636                $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' );
    3737        }
    38         if ( $file['error'] != '0' && ! isset( $_POST['html-upload'] ) && ( ! defined( 'DOING_AJAX' ) || DOING_AJAX != true ) ) {
     38        if ( $file['error'] != '0' && ! isset( $_POST['html-upload'] ) && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
    3939                wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' );
    4040        }
    4141