--- wordpress.inc.orig	2012-10-24 09:10:37.000000000 -0400
+++ wordpress.inc	2012-10-24 09:10:43.000000000 -0400
@@ -214,7 +214,10 @@
               $this->blog_url = $reader->readString();
               break;
             case 'link':
-              $this->link = $reader->readString();
+              // Catch only the first link
+              if (empty($this->link)) {
+                $this->link = $reader->readString();
+              };
               break;
           }
         }
@@ -230,7 +233,13 @@
 
     // Validate that it really is a WXR file
     if (empty($this->blog_url)) {
-      throw new Exception(t('The uploaded file is not a valid WordPress export'));
+      // Older WP versions did not have a blog_url but used link instead.
+      if (!empty($this->link)) {
+        $this->blog_url = $this->link;
+      }
+      else {
+        throw new Exception(t('The uploaded file is not a valid WordPress export'));
+      };
     }
     // Keep only alphabetic characters
     $this->title = preg_replace('/[^A-Za-z]/', '', $title);
