From c84bba5e1dc666422187ae9d3d1a316e2aa3997c Mon Sep 17 00:00:00 2001 From: mikelittle Date: Tue, 21 Oct 2003 23:20:55 +0000 Subject: [PATCH] Updated for new format thanks to Rantor http://wordpress.org/support/2/769 git-svn-id: http://svn.automattic.com/wordpress/trunk@459 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/links.import.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/links.import.php b/wp-admin/links.import.php index 094eef2b6..d87ca8609 100644 --- a/wp-admin/links.import.php +++ b/wp-admin/links.import.php @@ -103,12 +103,13 @@ switch ($step) { else { $opml = implode('', file($opml_url)); - preg_match_all('//', $opml, $items); + // Updated for new format thanks to Rantor http://wordpress.org/support/2/769 + preg_match_all('//',$opml,$items); $names = $items[1]; $types = $items[2]; $urls = $items[3]; - $titles = $items[4]; - $targets = $items[5]; + $titles = $items[5]; + $targets = $items[6]; $link_count = count($names); for ($i = 0; $i < $link_count; $i++) { if ('Last' == substr($titles[$i], 0, 4))