Merge pull request #1020 from ylkyrg/fix-includes
Use get_template_directory()
This commit is contained in:
commit
dfb5311d9d
|
@ -28,9 +28,5 @@ $understrap_includes = array(
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ( $understrap_includes as $file ) {
|
foreach ( $understrap_includes as $file ) {
|
||||||
$filepath = locate_template( 'inc' . $file );
|
require_once get_template_directory() . '/inc' . $file;
|
||||||
if ( ! $filepath ) {
|
|
||||||
trigger_error( sprintf( 'Error locating /inc%s for inclusion', $file ), E_USER_ERROR );
|
|
||||||
}
|
|
||||||
require_once $filepath;
|
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue