Merge pull request #1136 from tomdxw/feature/1134-template_include

Check for template_include passing non-strings. Fixes #1134
This commit is contained in:
Ben Word
2014-11-11 12:33:34 -06:00

View File

@@ -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');