var$max_wxr_version=1.1;// max. supported WXR version
var$max_wxr_version=1.2;// max. supported WXR version
var$id;// WXR attachment ID
var$id;// WXR attachment ID
...
@@ -194,6 +194,11 @@ class WP_Import extends WP_Importer {
...
@@ -194,6 +194,11 @@ class WP_Import extends WP_Importer {
echo'<p><strong>'.__('Sorry, there has been an error.','wordpress-importer').'</strong><br />';
echo'<p><strong>'.__('Sorry, there has been an error.','wordpress-importer').'</strong><br />';
echoesc_html($file['error']).'</p>';
echoesc_html($file['error']).'</p>';
returnfalse;
returnfalse;
}elseif(!file_exists($file['file'])){
echo'<p><strong>'.__('Sorry, there has been an error.','wordpress-importer').'</strong><br />';
printf(__('The export file could not be found at <code>%s</code>. It is likely that this was caused by a permissions problem.','wordpress-importer'),esc_html($file['file']));
echo'</p>';
returnfalse;
}
}
$this->id=(int)$file['id'];
$this->id=(int)$file['id'];
...
@@ -335,7 +340,7 @@ class WP_Import extends WP_Importer {
...
@@ -335,7 +340,7 @@ class WP_Import extends WP_Importer {