| @@ -98,9 +98,9 @@ | ||
| 98 | 98 | * @param string $plugin The plugin that reads the feed. |
| 99 | 99 | */ |
| 100 | 100 | public function __construct($element, $plugin) |
| 101 | 101 | { |
| 102 | - if ($element instanceof SimplePie_Item) | |
| 102 | + if ($element instanceof SimplePie_Item || $element instanceof SimplePie\Item) | |
| 103 | 103 | { |
| 104 | 104 | // extract data from SimplePie Item |
| 105 | 105 | $this->id = md5($element->get_id()); |
| 106 | 106 | $this->title = $element->get_title(); |