More descriptive variable name
This commit is contained in:
@@ -50,10 +50,10 @@ add_filter('template_include', function ($template) {
|
|||||||
collect(['get_header', 'wp_head'])->each(function ($tag) {
|
collect(['get_header', 'wp_head'])->each(function ($tag) {
|
||||||
ob_start();
|
ob_start();
|
||||||
do_action($tag);
|
do_action($tag);
|
||||||
$c = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
remove_all_actions($tag);
|
remove_all_actions($tag);
|
||||||
add_action($tag, function () use ($c) {
|
add_action($tag, function () use ($output) {
|
||||||
echo $c;
|
echo $output;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
|
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
|
||||||
|
|||||||
Reference in New Issue
Block a user