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) {
|
static function wrap($main) {
|
||||||
|
// Check for other filters returning null
|
||||||
|
if (!is_string($main)) {
|
||||||
|
return $main;
|
||||||
|
}
|
||||||
|
|
||||||
self::$main_template = $main;
|
self::$main_template = $main;
|
||||||
self::$base = basename(self::$main_template, '.php');
|
self::$base = basename(self::$main_template, '.php');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user