Use get_theme_file_path()
This commit is contained in:
@@ -53,7 +53,7 @@ add_filter('template_include', function ($template) {
|
|||||||
echo template($template, $data);
|
echo template($template, $data);
|
||||||
|
|
||||||
// Return a blank file to make WordPress happy
|
// Return a blank file to make WordPress happy
|
||||||
return get_template_directory() . '/index.php';
|
return get_theme_file_path('index.php');
|
||||||
}, PHP_INT_MAX);
|
}, PHP_INT_MAX);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user