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

View File

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