OPML import fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@10175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d12c9fa87e
commit
b3e9085058
@ -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);
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user