Handle local and remote blogroll imports. Props apokalyptik. fixes #4243 for 2.2

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-05-10 21:21:37 +00:00
parent 76ad2cc5e6
commit 65ffc78548
1 changed files with 7 additions and 1 deletions

View File

@ -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>