summaryrefslogtreecommitdiffstats
path: root/wp-admin/link-import.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-05-21 18:37:58 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-05-21 18:37:58 +0000
commit89fe0ff804e7c6497ebacc8b341ac89974f6f255 (patch)
tree3fce310b29c685008fdbb75c5ab531bc3a6ae12a /wp-admin/link-import.php
parenta139071806ba941346a109fbefb2d5f22bae1cc4 (diff)
downloadwordpress-mu-89fe0ff804e7c6497ebacc8b341ac89974f6f255.tar.gz
wordpress-mu-89fe0ff804e7c6497ebacc8b341ac89974f6f255.tar.xz
wordpress-mu-89fe0ff804e7c6497ebacc8b341ac89974f6f255.zip
WP Merge to rev 5499, this is a big one! Test it before you put it live!
Test only, not for production use yet git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@972 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/link-import.php')
-rw-r--r--wp-admin/link-import.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/wp-admin/link-import.php b/wp-admin/link-import.php
index 2c8accf..8502ed8 100644
--- a/wp-admin/link-import.php
+++ b/wp-admin/link-import.php
@@ -93,7 +93,12 @@ foreach ($categories as $category) {
}
if ( isset($opml_url) && $opml_url != '' ) {
- $opml = wp_remote_fopen($opml_url);
+ if ( $blogrolling === true ) {
+ $opml = wp_remote_fopen($opml_url);
+ } else {
+ $opml = file_get_contents($opml_url);
+ }
+
include_once('link-parse-opml.php');
$link_count = count($names);
@@ -118,6 +123,7 @@ else
} // end else
if ( ! $blogrolling )
+ apply_filters( 'wp_delete_file', $opml_url);
@unlink($opml_url);
?>
</div>