From 0eede66e7fcce8700a9502f30b310229391aa88a Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 10 Dec 2008 18:43:43 +0000 Subject: [PATCH] OPML import fixes git-svn-id: http://svn.automattic.com/wordpress/trunk@10175 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/opml.php | 2 ++ wp-admin/link-parse-opml.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wp-admin/import/opml.php b/wp-admin/import/opml.php index 96d1282b2..8148acf6f 100644 --- a/wp-admin/import/opml.php +++ b/wp-admin/import/opml.php @@ -16,6 +16,7 @@ $title = __('Import Blogroll'); class OPML_Import { function dispatch() { + global $wpdb, $user_ID; $step = $_POST['step']; if (!$step) $step = 0; ?> @@ -101,6 +102,7 @@ foreach ($categories as $category) { $blogrolling = false; } + global $opml, $updated_timestamp, $all_links, $map, $names, $urls, $targets, $descriptions, $feeds; if ( isset($opml_url) && $opml_url != '' ) { if ( $blogrolling === true ) { $opml = wp_remote_fopen($opml_url); diff --git a/wp-admin/link-parse-opml.php b/wp-admin/link-parse-opml.php index daa39a16d..7d03a1538 100644 --- a/wp-admin/link-parse-opml.php +++ b/wp-admin/link-parse-opml.php @@ -9,6 +9,8 @@ /** Load WordPress Bootstrap */ require_once('../wp-load.php'); +global $opml, $map; + // columns we wish to find are: link_url, link_name, link_target, link_description // we need to map XML attribute names to our columns $opml_map = array('URL' => 'link_url',