Merge pull request #721 from 0dp/patch-6

Using filepath instead of uri in asset_path
This commit is contained in:
Thomas A. Reinert 2018-06-25 23:52:13 +02:00 committed by GitHub
commit 1ab4078751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
* @return string
*/
function asset_path($filename) {
$manifest_path = get_stylesheet_directory_uri() .'/rev-manifest.json';
$manifest_path = get_stylesheet_directory() .'/rev-manifest.json';
if ( file_exists($manifest_path ) ) {
$manifest = json_decode( file_get_contents( $manifest_path ), TRUE );
} else {