Skip to content

Commit

Permalink
Merge pull request #1019 from WebDevStudios/feature/958-File-Director…
Browse files Browse the repository at this point in the history
…y-Path-Broken

#958 changed dirname call to WP method
  • Loading branch information
khleomix authored May 26, 2023
2 parents a64e724 + 68f2d02 commit cdda151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/setup/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @author WebDevStudios
*/
function scripts() {
$asset_file_path = dirname( __DIR__ ) . '/build/index.asset.php';
$asset_file_path = get_template_directory() . '/build/index.asset.php';

if ( is_readable( $asset_file_path ) ) {
$asset_file = include $asset_file_path;
Expand Down

0 comments on commit cdda151

Please sign in to comment.