| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * @package VikWP - Libraries |
| 4 | 4 | * @subpackage adapter.rss |
| 5 | 5 | * @author E4J s.r.l. |
| 6 | - * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. | |
| 6 | + * @copyright Copyright (C) 2023 E4J s.r.l. All Rights Reserved. | |
| 7 | 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | 8 | * @link https://vikwp.com |
| 9 | 9 | */ |
| 10 | 10 | |
| @@ -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(); |