diff --git a/disqus/lib/wp-api.php b/disqus/lib/wp-api.php index 73f6cf0..d37b4c3 100644 --- a/disqus/lib/wp-api.php +++ b/disqus/lib/wp-api.php @@ -90,7 +90,7 @@ function import_wordpress_comments(&$wxr, $timestamp, $eof=true) { ), ) ); - if ($response->errors) { + if (is_wp_error($response)) { // hack $this->api->last_error = $response->errors; return -1;