function_exists() wrapper around fetch_rss() to allow for plugin replacement. Props Otto42. see #4547
git-svn-id: http://svn.automattic.com/wordpress/trunk@5845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
25abcd1338
commit
9e21fb42fc
|
@ -377,6 +377,7 @@ class MagpieRSS {
|
||||||
}
|
}
|
||||||
require_once( dirname(__FILE__) . '/class-snoopy.php');
|
require_once( dirname(__FILE__) . '/class-snoopy.php');
|
||||||
|
|
||||||
|
if ( !function_exists('fetch_rss') ) :
|
||||||
function fetch_rss ($url) {
|
function fetch_rss ($url) {
|
||||||
// initialize constants
|
// initialize constants
|
||||||
init();
|
init();
|
||||||
|
@ -503,6 +504,7 @@ function fetch_rss ($url) {
|
||||||
|
|
||||||
} // end if ( !MAGPIE_CACHE_ON ) {
|
} // end if ( !MAGPIE_CACHE_ON ) {
|
||||||
} // end fetch_rss()
|
} // end fetch_rss()
|
||||||
|
endif;
|
||||||
|
|
||||||
function _fetch_remote_file ($url, $headers = "" ) {
|
function _fetch_remote_file ($url, $headers = "" ) {
|
||||||
// Snoopy is an HTTP client in PHP
|
// Snoopy is an HTTP client in PHP
|
||||||
|
|
Loading…
Reference in New Issue