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/
This commit is contained in:
parent
9aecf60a75
commit
1637233d97
|
@ -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 );
|
||||
}
|
||||
|
|
Reference in New Issue