Merge pull request #1020 from ylkyrg/fix-includes

Use get_template_directory()
This commit is contained in:
UnderstrapFramework 2019-12-13 11:27:55 +00:00 committed by GitHub
commit dfb5311d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -28,9 +28,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;
}