diff --git a/core/modules/node/src/Plugin/views/row/Rss.php b/core/modules/node/src/Plugin/views/row/Rss.php index 37261c1..60b82bf 100644 --- a/core/modules/node/src/Plugin/views/row/Rss.php +++ b/core/modules/node/src/Plugin/views/row/Rss.php @@ -111,8 +111,6 @@ public function render($row) { return; } - $description_build = []; - $node->link = $node->url('canonical', array('absolute' => TRUE)); $node->rss_namespaces = array(); $node->rss_elements = array( @@ -152,10 +150,8 @@ public function render($row) { $this->view->style_plugin->namespaces += $xml_rdf_namespaces; } - if ($display_mode != 'title') { - // We render node contents. - $description_build = $build; - } + // We render node contents. + $description_build = ($display_mode != 'title') ? $build : []; $item = new \stdClass(); $item->description = $description_build;