fetch_feed($feedURL) throws an error when passed a bad feed...
|Reported by:||wickedbrilliant||Owned by:|
If I call fetch_feed on a URL that is not a properly formed RSS feed, I don't generate any errors until I call a method on it, such as
at which point it throws:
Fatal error: Call to undefined method WP_Error::get_item_quantity()
It doesn't seem to repond to:
|returned false||returned some sort of error object. As it stands right now there is no way to catch errors.|
$feed = fetch_feed("http://www.espn.com/blah.htm");