Rework template wrapper, bring back template_part()
This commit is contained in:
@@ -49,5 +49,5 @@ add_filter('template_include', function ($main) {
|
||||
if (!is_string($main) && !(is_object($main) && method_exists($main, '__toString'))) {
|
||||
return $main;
|
||||
}
|
||||
return template_wrap(new Wrapper($main));
|
||||
return ((new Template(new Wrapper($main)))->layout());
|
||||
}, 109);
|
||||
|
||||
Reference in New Issue
Block a user