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
This commit is contained in:
Mark Jaquith 2007-08-03 01:39:36 +00:00
parent baf85f8428
commit e86bf7e19f

View File

@ -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