From e86bf7e19f8415a10f6cfdc24e9a691866ea235c Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 3 Aug 2007 01:39:36 +0000 Subject: [PATCH] function_exists() wrapper around fetch_rss() to allow for plugin replacement. Props Otto42. see #4547 git-svn-id: https://develop.svn.wordpress.org/trunk@5845 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rss.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/rss.php b/wp-includes/rss.php index 8097948f2f..44c9f5cc41 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -377,6 +377,7 @@ class MagpieRSS { } require_once( dirname(__FILE__) . '/class-snoopy.php'); +if ( !function_exists('fetch_rss') ) : function fetch_rss ($url) { // initialize constants init(); @@ -503,6 +504,7 @@ function fetch_rss ($url) { } // end if ( !MAGPIE_CACHE_ON ) { } // end fetch_rss() +endif; function _fetch_remote_file ($url, $headers = "" ) { // Snoopy is an HTTP client in PHP