Fix a few trailing spaces/tabs

git-svn-id: http://svn.automattic.com/wordpress/trunk@10157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-12-09 21:50:35 +00:00
parent 85038d2678
commit a32e0dd9ba
2 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ $title = __('Import Blogroll');
class OPML_Import {
function dispatch() {
function dispatch() {
$step = $_POST['step'];
if (!$step) $step = 0;
?>

View File

@ -106,7 +106,7 @@ class WP_Import {
// this doesn't check that the file is perfectly valid but will at least confirm that it's not the wrong format altogether
if ( !$is_wxr_file && preg_match('|xmlns:wp="http://wordpress[.]org/export/\d+[.]\d+/"|', $importline) )
$is_wxr_file = true;
if ( false !== strpos($importline, '<wp:base_site_url>') ) {
preg_match('|<wp:base_site_url>(.*?)</wp:base_site_url>|is', $importline, $url);
$this->base_url = $url[1];
@ -413,7 +413,7 @@ class WP_Import {
if ( $post_exists ) {
echo '<li>';
printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
$comment_post_ID = $post_id = $post_exists;
$comment_post_ID = $post_id = $post_exists;
} else {
// If it has parent, process parent first.
@ -558,11 +558,11 @@ class WP_Import {
function process_attachment($postdata, $remote_url) {
if ($this->fetch_attachments and $remote_url) {
printf( __('Importing attachment <em>%s</em>... '), htmlspecialchars($remote_url) );
// If the URL is absolute, but does not contain http, upload it assuming the base_site_url variable
if ( preg_match('/^\/[\w\W]+$/', $remote_url) )
$remote_url = rtrim($this->base_url,'/').$remote_url;
$upload = $this->fetch_remote_file($postdata, $remote_url);
if ( is_wp_error($upload) ) {
printf( __('Remote file error: %s'), htmlspecialchars($upload->get_error_message()) );