$comments_template fix

This commit is contained in:
Daniel Mejta
2018-09-03 08:43:51 +02:00
parent 68f8d9791d
commit b16e619da6

View File

@@ -72,8 +72,8 @@ add_filter('comments_template', function ($comments_template) {
$comments_template
);
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
return apply_filters("sage/template/{$class}/data", $data, $template);
$data = collect(get_body_class())->reduce(function ($data, $class) use ($comments_template) {
return apply_filters("sage/template/{$class}/data", $data, $comments_template);
}, []);
$theme_template = locate_template(["views/{$comments_template}", $comments_template]);