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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-05-10 21:21:54 +00:00
parent 272fbe5c8a
commit f7de9ede8a

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>