Use get_template_directory()

This commit is contained in:
Gary Kealy 2019-07-30 21:30:15 +01:00
parent c2a06502b7
commit c8c8caee62
1 changed files with 1 additions and 5 deletions

View File

@ -27,9 +27,5 @@ $understrap_includes = array(
);
foreach ( $understrap_includes as $file ) {
$filepath = locate_template( 'inc' . $file );
if ( ! $filepath ) {
trigger_error( sprintf( 'Error locating /inc%s for inclusion', $file ), E_USER_ERROR );
}
require_once $filepath;
require_once get_template_directory() . '/inc' . $file;
}