mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Fix potential notice in wp_handle_sideload().
git-svn-id: http://svn.automattic.com/wordpress/trunk@13825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6dcc05bd54
commit
6e0976117a
@ -392,7 +392,7 @@ function wp_handle_sideload( &$file, $overrides = false ) {
|
||||
return $upload_error_handler( $file, __( 'Invalid form submission.' ));
|
||||
|
||||
// A successful upload will pass this test. It makes no sense to override this one.
|
||||
if ( $file['error'] > 0 )
|
||||
if ( ! empty( $file['error'] ) )
|
||||
return $upload_error_handler( $file, $upload_error_strings[$file['error']] );
|
||||
|
||||
// A non-empty file will pass this test.
|
||||
|
Loading…
Reference in New Issue
Block a user