Skip to content

Commit b3e9085

Browse files
committed
OPML import fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@10175 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d12c9fa commit b3e9085

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

wp-admin/import/opml.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
class OPML_Import {
1717

1818
function dispatch() {
19+
global $wpdb, $user_ID;
1920
$step = $_POST['step'];
2021
if (!$step) $step = 0;
2122
?>
@@ -101,6 +102,7 @@ function dispatch() {
101102
$blogrolling = false;
102103
}
103104

105+
global $opml, $updated_timestamp, $all_links, $map, $names, $urls, $targets, $descriptions, $feeds;
104106
if ( isset($opml_url) && $opml_url != '' ) {
105107
if ( $blogrolling === true ) {
106108
$opml = wp_remote_fopen($opml_url);

wp-admin/link-parse-opml.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
/** Load WordPress Bootstrap */
1010
require_once('../wp-load.php');
1111

12+
global $opml, $map;
13+
1214
// columns we wish to find are: link_url, link_name, link_target, link_description
1315
// we need to map XML attribute names to our columns
1416
$opml_map = array('URL' => 'link_url',

0 commit comments

Comments
 (0)