Revert debug cruft accidentally committed with [5452]. Bad Ryan
git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
182c409c58
commit
3eaa92b8c5
|
@ -1915,7 +1915,7 @@ function wp_handle_upload( &$file, $overrides = false ) {
|
|||
// A successful upload will pass this test. It makes no sense to override this one.
|
||||
if ( $file['error'] > 0 )
|
||||
return $upload_error_handler( $file, $upload_error_strings[$file['error']] );
|
||||
error_log(var_export($file, true), 3, '/tmp/loggit');
|
||||
|
||||
// A non-empty file will pass this test.
|
||||
if ( $test_size && !($file['size'] > 0 ) )
|
||||
return $upload_error_handler( $file, __( 'File is empty. Please upload something more substantial.' ));
|
||||
|
|
Loading…
Reference in New Issue