Use get_theme_file_path()

This commit is contained in:
QWp6t
2016-12-27 22:15:55 -08:00
parent 121e3f20d7
commit 0b17f2a96c

View File

@@ -53,7 +53,7 @@ add_filter('template_include', function ($template) {
echo template($template, $data);
// Return a blank file to make WordPress happy
return get_template_directory() . '/index.php';
return get_theme_file_path('index.php');
}, PHP_INT_MAX);
/**