From 1637233d9766a6ea1797164a7e22cceaeff41493 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Fri, 9 Nov 2018 01:19:35 +0100 Subject: [PATCH] Update functions.php `locate_template()` adds a slash, resulting in a double slash if a slash is prepended to `inc . $file`. See https://developer.wordpress.org/reference/functions/locate_template/ --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index e30c279..93a6194 100644 --- a/functions.php +++ b/functions.php @@ -27,7 +27,7 @@ $understrap_includes = array( ); foreach ( $understrap_includes as $file ) { - $filepath = locate_template( '/inc' . $file ); + $filepath = locate_template( 'inc' . $file ); if ( ! $filepath ) { trigger_error( sprintf( 'Error locating /inc%s for inclusion', $file ), E_USER_ERROR ); }