Use WordPress HTTP class for SimplePie requests. Props DD32. fixes #9247

git-svn-id: https://develop.svn.wordpress.org/trunk@10687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-03-03 17:41:01 +00:00
parent 1a57debcdd
commit b68fd0794e
2 changed files with 51 additions and 26 deletions
+1 -3
View File
@@ -548,8 +548,8 @@ function fetch_feed($url) {
$feed = new SimplePie();
$feed->set_feed_url($url);
$feed->set_cache_class('WP_Feed_Cache');
$feed->set_file_class('WP_SimplePie_File');
$feed->set_cache_duration(43200);
$feed->set_useragent('WordPress/' . $GLOBALS['wp_version']);
$feed->init();
$feed->handle_content_type();
@@ -558,5 +558,3 @@ function fetch_feed($url) {
return $feed;
}
?>