From b30fff9c07eff9b6f7357c3a2e3779d62b40f8da Mon Sep 17 00:00:00 2001 From: rob1n Date: Sat, 31 Mar 2007 03:55:22 +0000 Subject: [PATCH] Fix double header when WP importer file upload fails. Props takayukister. fixes #4033 git-svn-id: http://svn.automattic.com/wordpress/trunk@5146 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/wordpress.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index 16fc376ea4..b4ed583e80 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -167,10 +167,8 @@ class WP_Import { function select_authors() { $file = wp_import_handle_upload(); if ( isset($file['error']) ) { - $this->header(); echo '

'.__('Sorry, there has been an error.').'

'; echo '

' . $file['error'] . '

'; - $this->footer(); return; } $this->file = $file['file'];