From 424cdf9b880dd5846ad1aa405b4f555003dcda7e 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: https://develop.svn.wordpress.org/trunk@5146 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'];