diff --git a/functions.php b/functions.php index 0feb14b..a2b2df4 100644 --- a/functions.php +++ b/functions.php @@ -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; }