Skip to content

Instantly share code, notes, and snippets.

@cgrymala
Created May 11, 2013 03:57
Show Gist options
  • Save cgrymala/68f0c462911c5c12f333 to your computer and use it in GitHub Desktop.
Save cgrymala/68f0c462911c5c12f333 to your computer and use it in GitHub Desktop.
Checking for SimplePie error
if ( $this->feed->error() ) {
return $this->feed = new WP_Error( 'simplepie-error', $this->feed->error() );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment