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:
parent
78ed2a6eca
commit
424cdf9b88
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue