Merge pull request #1136 from tomdxw/feature/1134-template_include
Check for template_include passing non-strings. Fixes #1134
This commit is contained in:
@@ -36,6 +36,11 @@ class Roots_Wrapping {
|
||||
}
|
||||
|
||||
static function wrap($main) {
|
||||
// Check for other filters returning null
|
||||
if (!is_string($main)) {
|
||||
return $main;
|
||||
}
|
||||
|
||||
self::$main_template = $main;
|
||||
self::$base = basename(self::$main_template, '.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user