📅  最后修改于: 2022-03-11 14:53:42.874000             🧑  作者: Mango
$roots_includes = array(
'/functions/body-class.php',
'/functions/connections.php'
);
foreach($roots_includes as $file){
if(!$filepath = locate_template($file)) {
trigger_error("Error locating `$file` for inclusion!", E_USER_ERROR);
}
require_once $filepath;
}
unset($file, $filepath);