Use get_template_directory()
This commit is contained in:
parent
c2a06502b7
commit
c8c8caee62
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue