Skip to content

Commit

Permalink
Merge pull request #683 from WebDevStudios/fix/remove-dot-dot-dash-up…
Browse files Browse the repository at this point in the history
…-a-dir-instead-use-dirname-from-the-php-function-much-better

Update asset build path include to use dirname() rather than ../
  • Loading branch information
Greg Rickaby authored Jun 16, 2021
2 parents 30e69ce + 495d172 commit 0fe8860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author WDS
*/
function _s_scripts() {
$asset_file_path = __DIR__ . '/../build/index.asset.php';
$asset_file_path = dirname( __DIR__ ) . '/build/index.asset.php';

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

0 comments on commit 0fe8860

Please sign in to comment.