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
This commit is contained in:
rob1n 2007-03-31 03:55:22 +00:00
parent 78ed2a6eca
commit 424cdf9b88
1 changed files with 0 additions and 2 deletions

View File

@ -167,10 +167,8 @@ class WP_Import {
function select_authors() { function select_authors() {
$file = wp_import_handle_upload(); $file = wp_import_handle_upload();
if ( isset($file['error']) ) { if ( isset($file['error']) ) {
$this->header();
echo '<p>'.__('Sorry, there has been an error.').'</p>'; echo '<p>'.__('Sorry, there has been an error.').'</p>';
echo '<p><strong>' . $file['error'] . '</strong></p>'; echo '<p><strong>' . $file['error'] . '</strong></p>';
$this->footer();
return; return;
} }
$this->file = $file['file']; $this->file = $file['file'];