More descriptive variable name

This commit is contained in:
Kim Helge Frimanslund
2018-10-28 23:37:54 +01:00
parent 79fddf944f
commit 435e9f26dc

View File

@@ -50,10 +50,10 @@ add_filter('template_include', function ($template) {
collect(['get_header', 'wp_head'])->each(function ($tag) {
ob_start();
do_action($tag);
$c = ob_get_clean();
$output = ob_get_clean();
remove_all_actions($tag);
add_action($tag, function () use ($c) {
echo $c;
add_action($tag, function () use ($output) {
echo $output;
});
});
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {