Importer refactoring from tellyworth. fixes #5522

git-svn-id: https://develop.svn.wordpress.org/trunk@6477 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-12-24 06:20:34 +00:00
parent 52010f2779
commit 49883447a3
2 changed files with 159 additions and 77 deletions

View File

@@ -20,6 +20,7 @@ function wp_import_cleanup( $id ) {
function wp_import_handle_upload() {
$overrides = array( 'test_form' => false, 'test_type' => false );
$_FILES['import']['name'] .= '.import';
$file = wp_handle_upload( $_FILES['import'], $overrides );
if ( isset( $file['error'] ) )