Make WordPress Core

Changeset 13825


Ignore:
Timestamp:
03/26/2010 05:42:34 PM (15 years ago)
Author:
nacin
Message:

Fix potential notice in wp_handle_sideload().

File:
1 edited

Legend:

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

    r13733 r13825  
    393393
    394394    // A successful upload will pass this test. It makes no sense to override this one.
    395     if ( $file['error'] > 0 )
     395    if ( ! empty( $file['error'] ) )
    396396        return $upload_error_handler( $file, $upload_error_strings[$file['error']] );
    397397
Note: See TracChangeset for help on using the changeset viewer.