From 6e0ef646b73a525f6eba6c404c2d4909a5902688 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@5776 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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