Skip to content

Commit 53a3981

Browse files
authored
Fix error require file wp-bootstrap-navwalker
under "//file exists" require will error when only copy and paste the code
1 parent 8d35396 commit 53a3981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if ( ! file_exists( get_template_directory() . '/wp-bootstrap-navwalker.php' ) )
4141
return new WP_Error( 'wp-bootstrap-navwalker-missing', __( 'It appears the wp-bootstrap-navwalker.php file may be missing.', 'wp-bootstrap-navwalker' ) );
4242
} else {
4343
// file exists... require it.
44-
require_once get_template_directory . 'wp-bootstrap-navwalker.php';
44+
require_once get_template_directory() . '/wp-bootstrap-navwalker.php';
4545
}
4646
```
4747

0 commit comments

Comments
 (0)