From 408ad189aa5e07fcf22e030c7802e7aabe476d60 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 3 Jul 2007 18:10:20 +0000 Subject: [PATCH] Make it possible for a plugin to replace the feed-parsing engine. see: #4547 git-svn-id: https://develop.svn.wordpress.org/trunk@5776 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rss.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wp-includes/rss.php b/wp-includes/rss.php index ab3e9e9ec8..8097948f2f 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -1,4 +1,6 @@ '; @@ -839,7 +844,9 @@ function wp_rss( $url, $num_items = -1 ) { _e( 'An error has occurred, which probably means the feed is down. Try again later.' ); } } +endif; +if ( !function_exists('get_rss') ) : function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS $rss = fetch_rss($url); if ( $rss ) { @@ -855,4 +862,6 @@ function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS return false; } } +endif; + ?> \ No newline at end of file