Changeset 11963
- Timestamp:
- 09/23/2009 07:06:58 AM (16 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r11930 r11963 266 266 // A non-empty file will pass this test. 267 267 if ( $test_size && !($file['size'] > 0 ) ) 268 return $upload_error_handler( $file, __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini .' ));268 return $upload_error_handler( $file, __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' )); 269 269 270 270 // A properly uploaded file will pass this test. There should be no reason to override this one. -
trunk/wp-admin/includes/import.php
r10611 r11963 60 60 */ 61 61 function wp_import_handle_upload() { 62 if ( !isset($_FILES['import']) ) { 63 $file['error'] = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' ); 64 return $file; 65 } 66 62 67 $overrides = array( 'test_form' => false, 'test_type' => false ); 63 68 $_FILES['import']['name'] .= '.txt';
Note: See TracChangeset
for help on using the changeset viewer.