diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-29 13:07:54 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-29 13:07:54 +0000 |
| commit | 6e7706463d5156a1692f4e24b517d1c19076d318 (patch) | |
| tree | 0cbe4e47db536cdedc64f544a12bde2cb4596c0c /wp-inst/wp-includes/rss-functions.php | |
| parent | d5ab61938e90ae1db9dc65953ac1058822db6ff5 (diff) | |
| download | wordpress-mu-6e7706463d5156a1692f4e24b517d1c19076d318.tar.gz wordpress-mu-6e7706463d5156a1692f4e24b517d1c19076d318.tar.xz wordpress-mu-6e7706463d5156a1692f4e24b517d1c19076d318.zip | |
Massive merge from WP Core.
Deleted unused files.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@251 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/rss-functions.php')
| -rw-r--r-- | wp-inst/wp-includes/rss-functions.php | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/wp-inst/wp-includes/rss-functions.php b/wp-inst/wp-includes/rss-functions.php index fac1e02..5afb5a5 100644 --- a/wp-inst/wp-includes/rss-functions.php +++ b/wp-inst/wp-includes/rss-functions.php @@ -39,18 +39,13 @@ class MagpieRSS { # if PHP xml isn't compiled in, die # - if (!function_exists('xml_parser_create')) { - die( "Failed to load PHP's XML Extension. " . - "http://www.php.net/manual/en/ref.xml.php" ); - } + if ( !function_exists('xml_parser_create') ) + die( "Failed to load PHP's XML Extension. http://www.php.net/manual/en/ref.xml.php" ); $parser = @xml_parser_create(); - if (!is_resource($parser)) - { - die( "Failed to create an instance of PHP's XML parser. " . - "http://www.php.net/manual/en/ref.xml.php" ); - } + if ( !is_resource($parser) ) + die( "Failed to create an instance of PHP's XML parser. http://www.php.net/manual/en/ref.xml.php"); $this->parser = $parser; @@ -372,7 +367,7 @@ function fetch_rss ($url) { init(); if ( !isset($url) ) { - #error("fetch_rss called without a url"); + // error("fetch_rss called without a url"); return false; } @@ -384,7 +379,7 @@ function fetch_rss ($url) { return _response_to_rss( $resp ); } else { - #error("Failed to fetch $url and cache is off"); + // error("Failed to fetch $url and cache is off"); return false; } } @@ -487,7 +482,7 @@ function fetch_rss ($url) { } // else we totally failed - $cache->error( $errormsg ); + // error( $errormsg ); return false; @@ -543,7 +538,7 @@ function _response_to_rss ($resp) { if ($rss) { $errormsg .= " (" . $rss->ERROR . ")"; } - error($errormsg); + // error($errormsg); return false; } // end if ($rss and !$rss->error) |
