diff -u b/core/modules/comment/comment.module b/core/modules/comment/comment.module --- b/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -555,7 +555,7 @@ $comment->setCreatedTime($created_time); $comment->changed->value = REQUEST_TIME; $comment->in_preview = TRUE; - $comment_build = entity_view($comment, 'full', NULL); + $comment_build = entity_view($comment, 'full'); $comment_build['#weight'] = -100; $preview_build['comment_preview'] = $comment_build; @@ -565,7 +565,7 @@ $build = array(); $parent = $comment->getParentComment(); if ($parent && $parent->isPublished()) { - $build = entity_view($parent, 'full', NULL); + $build = entity_view($parent, 'full'); } } else { diff -u b/core/modules/comment/src/Entity/Comment.php b/core/modules/comment/src/Entity/Comment.php --- b/core/modules/comment/src/Entity/Comment.php +++ b/core/modules/comment/src/Entity/Comment.php @@ -80,7 +80,7 @@ $this->setPublished($published); } if ($this->isNew()) { - // Add the comment to database. This next section builds the thread field.. + // Add the comment to database. This next section builds the thread field. $thread = $this->getThread(); if (empty($thread)) { if ($this->threadLock) { diff -u b/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php b/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php --- b/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php +++ b/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php @@ -27,7 +27,7 @@ * {@inheritdoc} */ public function execute($comment = NULL) { - $build = entity_view($comment, 'full', NULL); + $build = entity_view($comment, 'full'); $text = drupal_render($build); foreach ($this->configuration['keywords'] as $keyword) { if (strpos($text, $keyword) !== FALSE) { diff -u b/core/modules/comment/src/Plugin/views/row/Rss.php b/core/modules/comment/src/Plugin/views/row/Rss.php --- b/core/modules/comment/src/Plugin/views/row/Rss.php +++ b/core/modules/comment/src/Plugin/views/row/Rss.php @@ -106,7 +106,7 @@ // The comment gets built and modules add to or modify // $comment->rss_elements and $comment->rss_namespaces. - $build = entity_view($comment, 'rss', NULL); + $build = entity_view($comment, 'rss'); unset($build['#theme']); if (!empty($comment->rss_namespaces)) {