mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user