Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1129 from JPOak/fix-asset-path-error
Browse files Browse the repository at this point in the history
Fix php error in asset_path function
  • Loading branch information
olefredrik authored Oct 13, 2017
2 parents b421d00 + 09acefe commit 5da32e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/enqueue-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

if ( ! function_exists( 'foundationpress_asset_path' ) ) :
function foundationpress_asset_path( $filename ) {
$dir = end( explode ( '.' , $filename) );
$filename_split = explode( '.', $filename );
$dir = end( $filename_split );
$manifest_path = dirname( dirname(__FILE__) ) . '/dist/assets/' . $dir . '/rev-manifest.json';

if ( file_exists($manifest_path ) ) {
Expand Down

0 comments on commit 5da32e3

Please sign in to comment.