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:
IanDelMar 2018-11-09 01:19:35 +01:00 committed by GitHub
parent 9aecf60a75
commit 1637233d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ $understrap_includes = array(
); );
foreach ( $understrap_includes as $file ) { foreach ( $understrap_includes as $file ) {
$filepath = locate_template( '/inc' . $file ); $filepath = locate_template( 'inc' . $file );
if ( ! $filepath ) { if ( ! $filepath ) {
trigger_error( sprintf( 'Error locating /inc%s for inclusion', $file ), E_USER_ERROR ); trigger_error( sprintf( 'Error locating /inc%s for inclusion', $file ), E_USER_ERROR );
} }